this is form validation, it works awesome then how to validate email pattern matching & phone no. matching. Below is my scipt part... Please Help
<script type="text/javascript">
$(window).load(function(){
$(document).ready(function () {
$('#myform').validate({
rules: {
name: {
required: true
},
email: {
required: true
},phone: {
required: true
},captcha: {
required: true
},
},
errorPlacement: function(){
return false;
},
submitHandler: function (form) {
alert('valid form submitted');
return false;
}
});
});
});
</script>