Código HTML:
<form id="form_login" name="form_login" method="post" enctype="multipart/form-data" action="dologin.php"> <h1>Shopping Manager Beta 1</h1> <hr /> <table width="100%" border="0" align="center"> <tr> <td width="40%" align="right"><label for="login_user">Login:</label></td> <td width="60%"><input id="login_user" name="login_user" size="26" /></td> </tr> <tr> <td align="right"><label for="password_user">Contraseña:</label></td> <td><input id="password_user" name="password_user" type="password" size="26" /></td> </tr> <tr> <td colspan="2" align="center"><input type="submit" value="Login" /></td> </tr> </table> <hr /> <table width="60%" align="center"> <tr> <td align="center"><div id="notification_area" class="error">ERROR DE USUARIO Y/O CONTRASEÑA</div></td> </tr> </table> </form>
Código HTML:
<script language="javascript" type="text/javascript" src="js/jquery-1.3.2.min.js"></script> <script language="javascript" type="text/javascript" src="js/jquery.validate.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("#form_login").validate(); }); </script>
Muchas gracias de antemano.