hola, probe lo q me dijiste... este es el codigo...
Código HTML:
function noupreventiu(miform){
var id_maquina = document.getElementById('id_maquina').options[document.getElementById('id_maquina').selectedIndex].value
var id_preventiu = document.getElementById('id_tipus_preventiu').options[document.getElementById('id_tipus_preventiu').selectedIndex].value
var id_periode = document.getElementById('id_periode').options[document.getElementById('id_periode').selectedIndex].value
if (id_maquina==0){
alert("La Maquina es obligatoria.");
return false;
}else if (id_preventiu=='aa'){
alert("El Tipo de Preventivo es obligatorio.");
return false;
}else if (id_periode==0){
alert("Introducir un Periodo es obligatorio.");
return false;
}else {
myajax.Form('miform', 'result2');
miform.reset;
}
}
xo me dice lo siguiente:miform has no properties
tambien he probado con
Código HTML:
document.miform.reset;
xo no me hace nada...
Código HTML:
<form id="miform" name="miform" method="post" action="configuracio/preventius/act_ins.php" OnSubmit="noupreventiu(this.form);return false">
a ver si puedes ayudarme en esto...
SOLUCIONADO
Eso me pasa por no mirar bien tu codigo
Código HTML:
document.miform.reset();
saludos