How can I allow only gmail.com as domain in my email field validating using jquery-validation plugin ?
$(\"#myForm\").validate({ rules: { myemail: {
You have to write a regular expression that accepts strings ending with 'gmail.com'
Check here for regex on Gmail address:
Regular Expression - Validate Gmail addresses
Check here on how to add regexp validation:
jQuery validate: How to add a rule for regular expression validation?