Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am doing server sidevalidations using jquery and php.validations are not performing.I am getting error:$("loginform").validate is not a function.How can i fix that error.
Posted
Comments
CRDave1988 2-May-12 2:27am    
What server side validation using jQuery!!!
not possible.
can u show ur code some may help u.
DeepthiTanguturi 2-May-12 2:34am    
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Server side form validation with JQuery plugin and PHP</title>
<script src="jquery-1.4.2.js"></script>
<script src="jquery.validate.min.js"></script>
<script>
$(document).ready(function(){

$('#my-form').validate({
'rules':
});


});
</script>
</head>
<body>

Server side form validation with JQuery plugin and PHP



<br />

<form name="my-form" id="my-form" method="post" action="submit.php">
<table>
<tr>
<td>Your name:</td>
<td><input name="name" value="" size="30" maxlength="255" /></td>
</tr>
<tr>
<td>Your email:</td>
<td><input name="email" value="" size="30" maxlength="255" /></td>
</tr>
<tr>
<td>Your favourite color:</td>
<td>
<select name="fav_color">
<option value="">-select please-</option>
<option value="Black">Black</option>
<option value="White">White</option>
<option value="Blue">Blue</option>
<option value="Red">Red</option>
<option value="Yellow">Yellow</option>
</select>
</td>
</tr>
<tr>
<td>Your comment:</td>
<td><textarea name="comment" rows="6" cols="35"></textarea></td>
</tr>
<tr>
<td colspan="2"><input type="submit" value="Submit" /></td>
</tr>
</table>
</form>

</body>
</html>
DeepthiTanguturi 2-May-12 2:57am    
No,I am gettng error.By mistaken i pasete the code in solution
Mohibur Rashid 2-May-12 2:41am    
who would implement rules? :o
DeepthiTanguturi 2-May-12 2:43am    
myself only

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900