Hi,
I want to prevent submitting a form if any of the field is empty. also if possible I would like to validate some basic things. All I want to use JQuery: How do I do that? I have no way and google points me to plugins. The things I want to do are lightweight and I don't need plugin
Thanks
Here is my form:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Login in Site</title>
<link rel="stylesheet" type="text/css" href="/loginsys/site.css" />
<script type="text/javascript" src="/loginsys/lib/jquery.js"> </script>
<script type="text/javascript" src="/loginsys/lib/form.js"> </script>
</head>
<body>
<form action="/loginsys/login.php" method="POST">
<p></p>
<table cellpadding="5px" id="form">
<tr>
<td>First Name:</td>
<td><input type="text" name="fname" /></td>
</tr>
<tr>
<td>Last Name:</td>
<td><input type="text" name="lname" /></td>
</tr>
<tr>
<td>Email:</td>
<td><input type="text" name="email" /></td>
</tr>
<tr>
<td>Username:</td>
<td><input type="text" name="usrname" /></td>
</tr>
<tr>
<td>Password:</td>
<td><input type="password" name="passwd" /></td>
</tr><tr>
<td></td>
<td><center><input type="submit" value="Login" /></center></td>
</tr>
</table>
</form>
</body>
</html>