<script>
$(function () {
$('#contact_us').validate({
rules: {
email: {
email: true,
},
mobile:{
minlength:10,
maxlength:10,
number :true,
}
}, messages: {
name: 'Please enter your name',
email: 'Please enter email',
message: 'Please enter message',
mobile:{
required : "Please enter mobile number",
maxlength:'Mobile should be 10 digits only'
}
}
})
})
</script>
$(function () {
$('#contact_us').validate({
rules: {
email: {
email: true,
},
mobile:{
minlength:10,
maxlength:10,
number :true,
}
}, messages: {
name: 'Please enter your name',
email: 'Please enter email',
message: 'Please enter message',
mobile:{
required : "Please enter mobile number",
maxlength:'Mobile should be 10 digits only'
}
}
})
})
</script>
0 comments:
Post a Comment