Por defecto el btnNext.disabled = True; pero cuando yo llene todos los formularios deberia habilitarse el btnNext.disabled = false; ah ver si me dan ideas.. Gracias
Código HTML:
Ver original
<script type="text/javascript"> $(document).ready(function() { var btnNext = document.getElementById("ctl00"); $("#password").change(function() { var password = $("#password").val(); if(password.length < 6) {$("#status2").html('<b><font color="#cc0000">Contraseña Invalida<font></b>');} else {$("#status2").html('<img src="yes.png" width="18px">');} }); $("#repassword").change(function() { var password = $("#password").val(); var repassword = $("#repassword").val(); if(repassword.length < 6) {$("#status3").html('<b><font color="#cc0000">Contraseña Invalida</font></b>');} else {$("#status3").html('<img src="yes.png" width="18px">');} }); }); </script> <form name="regform" id="regform" method="POST" action=""> <input name="password" type="password" maxlength="10" id="password" /> <input name="repassword" type="password" maxlength="10" id="repassword" /> <input type="submit" name="Submit" value="Registrarte" id="ctl00" disabled="disabled" /> </form>
http://jsfiddle.net/jim3481/PVXtw/