Validation and AjaxForm plugins are not working
Hi,
I have developed a small form by using Validation and AjaxForm plug-ins. (Please refer my below code)
- <head>
<script type="text/javascript" src="Scripts/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="Scripts/jquery.validate.min.js"></script>
<script type="text/javascript" src="Scripts/jquery.form.js"></script>
</head>
<body>
<script type="text/javascript">
$(document).ready(function() {
$('#searchForm').ajaxForm({
beforeSubmit: function() {
return $('#CreateLog').validate().form();
}
});
});
</script>
<form id="CreateLog" action="Create" method="post">
<label>UserName</label><br />
<input id="cname" name="name"/>
<input type="submit" value="Save" />
</form>
</body>
I want to validate the information on the page before send them to the server. Unfortunatelly, the scripts are not working properly. Am I missing anything?
Rasika.