Cannot use JQuery Form Validation Plugin in custom way. ( Beginner )
I am using this jQuery Form Validation Plugin :
http://bassistance.de/jquery-plugins/jquery-plugin-validation/
But unable to get proper tutorial to use it in custom way. E.g : I have written a custom form below.. My Query is how can I control validation on a form element. Say in the following textbox named txtPaymentFirstName only Alphabet and space allowed, no special character or numbers allowed , how to do that?
Also I want only in the following textbox txtURL, valid URLs will be written, how to incorporate that rule?
<script src="jquery.js" type="text/javascript"></script>
<script src="jquery.validate.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function()
{
$("#frmCheckout").validate();
});
</script>
<form action="abc.php" method="post" name="frmCheckout" id="frmCheckout">
<input name="txtName" type="text" id="txtName" size="30" />
<input name="txtURL" type="text" id="txtURL" size="30" />
</form>