{"id":1705,"date":"2016-07-19T16:55:26","date_gmt":"2016-07-19T16:55:26","guid":{"rendered":"https:\/\/www.codexworld.com\/?p=1705"},"modified":"2016-07-19T16:55:26","modified_gmt":"2016-07-19T16:55:26","slug":"jquery-form-validation-plugin","status":"publish","type":"post","link":"https:\/\/www.codexworld.com\/jquery-form-validation-plugin\/","title":{"rendered":"Form Validation using jQuery Validation Plugin"},"content":{"rendered":"<div class=\"img_center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/07\/form-validation-using-jquery-validation-plugin-codexworld-1024x576.png\" alt=\"form-validation-using-jquery-validation-plugin-codexworld\" width=\"960\" height=\"540\" class=\"alignnone size-large wp-image-1706\" srcset=\"https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/07\/form-validation-using-jquery-validation-plugin-codexworld-1024x576.png 1024w, https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/07\/form-validation-using-jquery-validation-plugin-codexworld-300x169.png 300w, https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/07\/form-validation-using-jquery-validation-plugin-codexworld-768x432.png 768w, https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/07\/form-validation-using-jquery-validation-plugin-codexworld-350x197.png 350w, https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/07\/form-validation-using-jquery-validation-plugin-codexworld-320x180.png 320w, https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/07\/form-validation-using-jquery-validation-plugin-codexworld-380x214.png 380w, https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/07\/form-validation-using-jquery-validation-plugin-codexworld-200x112.png 200w, https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/07\/form-validation-using-jquery-validation-plugin-codexworld-346x195.png 346w, https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/07\/form-validation-using-jquery-validation-plugin-codexworld.png 1366w\" sizes=\"auto, (max-width: 960px) 100vw, 960px\" \/><\/div>\n<p>Client-side form validation is very useful for validating a form and it makes your web project more user-friendly. You can found many ways to perform client-side validation in HTML form, but jQuery Validation Plugin is the easiest way to validate a form. The <b>jQuery Validation Plugin<\/b> lets you implement form validation instantly with many customization options.<\/p>\n<p>This tutorial will show you how to integrate client-side form validation using jQuery validation plugin. Also, this example form validation code will help you to use custom validation rules and messages. In the sample script, we&#8217;ll demonstrate a registration form validation with different rules and custom messages.<\/p>\n<p>To use jQuery Validation Plugin you need to include the jQuery library (<code>jquery.min.js<\/code>) and jQuery validation plugin library (<code>jquery.validate.js<\/code>).<\/p>\n<pre>&lt;<span style=\"color:#bf4f24\">script<\/span> <span style=\"color:#bf4f24\">src<\/span>=<span style=\"color:#0b6125\">\"jquery.min.js\"<\/span>>&lt;\/<span style=\"color:#bf4f24\">script<\/span>>\r\n&lt;<span style=\"color:#bf4f24\">script<\/span> <span style=\"color:#bf4f24\">src<\/span>=<span style=\"color:#0b6125\">\"jquery.validate.js\"<\/span>>&lt;\/<span style=\"color:#bf4f24\">script<\/span>>\r\n<\/pre>\n<p>The <code>validate()<\/code> method is used to validate a form based on the selector provided.<br \/>\n<b>rules<\/b> are key\/value pairs defining custom rules. Key is the name of an element and value is an object consisting of rule\/parameter pairs or a plain String.<br \/>\n<b>messages<\/b> are key\/value pairs defining custom messages. Key is the name of an element and value is a message to display for respective element.<\/p>\n<pre><span style=\"color:#691c97\">$<\/span>(<span style=\"color:#691c97\">document<\/span>)<span style=\"color:#693a17\">.ready<\/span>(<span style=\"color:#a71d5d;font-style:italic\">function<\/span>() {\r\n    <span style=\"color:#691c97\">$<\/span>(\"<span style=\"color:#bf4f24\">#userForm<\/span>\").validate({\r\n        rules: {\r\n            name: <span style=\"color:#0b6125\">\"required\"<\/span>,\r\n            email: {\r\n                required: <span style=\"color:#811f24;font-weight:700\">true<\/span>,\r\n                email: <span style=\"color:#811f24;font-weight:700\">true<\/span>\r\n            },\r\n            phone: {\r\n                required: <span style=\"color:#811f24;font-weight:700\">true<\/span>,\r\n                number: <span style=\"color:#811f24;font-weight:700\">true<\/span>\r\n            },\r\n            url: {\r\n                required: <span style=\"color:#811f24;font-weight:700\">false<\/span>,\r\n                url: <span style=\"color:#811f24;font-weight:700\">true<\/span>\r\n            },\r\n            username: {\r\n                required: <span style=\"color:#811f24;font-weight:700\">true<\/span>,\r\n                minlength: <span style=\"color:#811f24;font-weight:700\">6<\/span>\r\n            },\r\n            password: {\r\n                required: <span style=\"color:#811f24;font-weight:700\">true<\/span>,\r\n                minlength: <span style=\"color:#811f24;font-weight:700\">6<\/span>\r\n            },\r\n            confirm_password: {\r\n                required: <span style=\"color:#811f24;font-weight:700\">true<\/span>,\r\n                minlength: <span style=\"color:#811f24;font-weight:700\">6<\/span>,\r\n                equalTo: <span style=\"color:#0b6125\">\"#password\"<\/span>\r\n            },\r\n            agree: <span style=\"color:#0b6125\">\"required\"<\/span>\r\n        },\r\n        messages: {\r\n            name: <span style=\"color:#0b6125\">\"Please enter your name\"<\/span>,\r\n            email: <span style=\"color:#0b6125\">\"Please enter a valid email address\"<\/span>,\r\n            phone: {\r\n                required: <span style=\"color:#0b6125\">\"Please enter your phone number\"<\/span>,\r\n                number: <span style=\"color:#0b6125\">\"Please enter only numeric value\"<\/span>\r\n            },\r\n            url: {\r\n                url: <span style=\"color:#0b6125\">\"Please enter valid url\"<\/span>\r\n            },\r\n            username: {\r\n                required: <span style=\"color:#0b6125\">\"Please enter a username\"<\/span>,\r\n                minlength: <span style=\"color:#0b6125\">\"Your username must consist of at least 6 characters\"<\/span>\r\n            },\r\n            password: {\r\n                required: <span style=\"color:#0b6125\">\"Please provide a password\"<\/span>,\r\n                minlength: <span style=\"color:#0b6125\">\"Your password must be at least 6 characters long\"<\/span>\r\n            },\r\n            confirm_password: {\r\n                required: <span style=\"color:#0b6125\">\"Please provide a password\"<\/span>,\r\n                minlength: <span style=\"color:#0b6125\">\"Your password must be at least 6 characters long\"<\/span>,\r\n                equalTo: <span style=\"color:#0b6125\">\"Please enter the same password as above\"<\/span>\r\n            },\r\n            agree: <span style=\"color:#0b6125\">\"Please accept our policy\"<\/span>\r\n        }\r\n    });\r\n});\r\n<\/pre>\n<h2>HTML Code<\/h2>\n<p>The user registration form HTML which is validated with jQuery Validation Plugin.<\/p>\n<pre>&lt;<span style=\"color:#bf4f24\">form<\/span> <span style=\"color:#bf4f24\">class<\/span>=<span style=\"color:#0b6125\">\"userform\"<\/span> <span style=\"color:#bf4f24\">id<\/span><span style=\"color:#794938\">=<\/span><span style=\"color:#0b6125\">\"userForm\"<\/span> <span style=\"color:#bf4f24\">method<\/span>=<span style=\"color:#0b6125\">\"post\"<\/span> <span style=\"color:#bf4f24\">action<\/span>=<span style=\"color:#0b6125\">\"\"<\/span>>\r\n    &lt;<span style=\"color:#bf4f24\">p<\/span>>\r\n        &lt;<span style=\"color:#bf4f24\">label<\/span> <span style=\"color:#bf4f24\">for<\/span>=<span style=\"color:#0b6125\">\"name\"<\/span>>Name&lt;\/<span style=\"color:#bf4f24\">label<\/span>>\r\n        &lt;<span style=\"color:#bf4f24\">input<\/span> <span style=\"color:#bf4f24\">id<\/span><span style=\"color:#794938\">=<\/span><span style=\"color:#0b6125\">\"name\"<\/span> <span style=\"color:#bf4f24\">name<\/span>=<span style=\"color:#0b6125\">\"name\"<\/span> <span style=\"color:#bf4f24\">type<\/span>=<span style=\"color:#0b6125\">\"text\"<\/span> >\r\n    &lt;\/<span style=\"color:#bf4f24\">p<\/span>>\r\n    &lt;<span style=\"color:#bf4f24\">p<\/span>>\r\n        &lt;<span style=\"color:#bf4f24\">label<\/span> <span style=\"color:#bf4f24\">for<\/span>=<span style=\"color:#0b6125\">\"email\"<\/span>>E-Mail&lt;\/<span style=\"color:#bf4f24\">label<\/span>>\r\n        &lt;<span style=\"color:#bf4f24\">input<\/span> <span style=\"color:#bf4f24\">id<\/span><span style=\"color:#794938\">=<\/span><span style=\"color:#0b6125\">\"email\"<\/span> <span style=\"color:#bf4f24\">type<\/span>=<span style=\"color:#0b6125\">\"email\"<\/span> <span style=\"color:#bf4f24\">name<\/span>=<span style=\"color:#0b6125\">\"email\"<\/span> >\r\n    &lt;\/<span style=\"color:#bf4f24\">p<\/span>>\r\n    &lt;<span style=\"color:#bf4f24\">p<\/span>>\r\n        &lt;<span style=\"color:#bf4f24\">label<\/span> <span style=\"color:#bf4f24\">for<\/span>=<span style=\"color:#0b6125\">\"phone\"<\/span>>Phone&lt;\/<span style=\"color:#bf4f24\">label<\/span>>\r\n        &lt;<span style=\"color:#bf4f24\">input<\/span> <span style=\"color:#bf4f24\">id<\/span><span style=\"color:#794938\">=<\/span><span style=\"color:#0b6125\">\"phone\"<\/span> <span style=\"color:#bf4f24\">type<\/span>=<span style=\"color:#0b6125\">\"phone\"<\/span> <span style=\"color:#bf4f24\">name<\/span>=<span style=\"color:#0b6125\">\"phone\"<\/span> >\r\n    &lt;\/<span style=\"color:#bf4f24\">p<\/span>>\r\n    &lt;<span style=\"color:#bf4f24\">p<\/span>>\r\n        &lt;<span style=\"color:#bf4f24\">label<\/span> <span style=\"color:#bf4f24\">for<\/span>=<span style=\"color:#0b6125\">\"url\"<\/span>>URL&lt;\/<span style=\"color:#bf4f24\">label<\/span>>\r\n        &lt;<span style=\"color:#bf4f24\">input<\/span> <span style=\"color:#bf4f24\">id<\/span><span style=\"color:#794938\">=<\/span><span style=\"color:#0b6125\">\"url\"<\/span> <span style=\"color:#bf4f24\">type<\/span>=<span style=\"color:#0b6125\">\"url\"<\/span> <span style=\"color:#bf4f24\">name<\/span>=<span style=\"color:#0b6125\">\"url\"<\/span>>\r\n    &lt;\/<span style=\"color:#bf4f24\">p<\/span>>\r\n    &lt;<span style=\"color:#bf4f24\">p<\/span>>\r\n        &lt;<span style=\"color:#bf4f24\">label<\/span> <span style=\"color:#bf4f24\">for<\/span>=<span style=\"color:#0b6125\">\"username\"<\/span>>Username&lt;\/<span style=\"color:#bf4f24\">label<\/span>>\r\n        &lt;<span style=\"color:#bf4f24\">input<\/span> <span style=\"color:#bf4f24\">id<\/span><span style=\"color:#794938\">=<\/span><span style=\"color:#0b6125\">\"username\"<\/span> <span style=\"color:#bf4f24\">name<\/span>=<span style=\"color:#0b6125\">\"username\"<\/span> <span style=\"color:#bf4f24\">type<\/span>=<span style=\"color:#0b6125\">\"text\"<\/span>>\r\n    &lt;\/<span style=\"color:#bf4f24\">p<\/span>>\r\n    &lt;<span style=\"color:#bf4f24\">p<\/span>>\r\n        &lt;<span style=\"color:#bf4f24\">label<\/span> <span style=\"color:#bf4f24\">for<\/span>=<span style=\"color:#0b6125\">\"password\"<\/span>>Password&lt;\/<span style=\"color:#bf4f24\">label<\/span>>\r\n        &lt;<span style=\"color:#bf4f24\">input<\/span> <span style=\"color:#bf4f24\">id<\/span><span style=\"color:#794938\">=<\/span><span style=\"color:#0b6125\">\"password\"<\/span> <span style=\"color:#bf4f24\">name<\/span>=<span style=\"color:#0b6125\">\"password\"<\/span> <span style=\"color:#bf4f24\">type<\/span>=<span style=\"color:#0b6125\">\"password\"<\/span>>\r\n    &lt;\/<span style=\"color:#bf4f24\">p<\/span>>\r\n    &lt;<span style=\"color:#bf4f24\">p<\/span>>\r\n        &lt;<span style=\"color:#bf4f24\">label<\/span> <span style=\"color:#bf4f24\">for<\/span>=<span style=\"color:#0b6125\">\"confirm_password\"<\/span>>Confirm password&lt;\/<span style=\"color:#bf4f24\">label<\/span>>\r\n        &lt;<span style=\"color:#bf4f24\">input<\/span> <span style=\"color:#bf4f24\">id<\/span><span style=\"color:#794938\">=<\/span><span style=\"color:#0b6125\">\"confirm_password\"<\/span> <span style=\"color:#bf4f24\">name<\/span>=<span style=\"color:#0b6125\">\"confirm_password\"<\/span> <span style=\"color:#bf4f24\">type<\/span>=<span style=\"color:#0b6125\">\"password\"<\/span>>\r\n    &lt;\/<span style=\"color:#bf4f24\">p<\/span>>\r\n    &lt;<span style=\"color:#bf4f24\">p<\/span>>\r\n        &lt;<span style=\"color:#bf4f24\">label<\/span> <span style=\"color:#bf4f24\">for<\/span>=<span style=\"color:#0b6125\">\"agree\"<\/span>>Please agree to our policy&lt;\/<span style=\"color:#bf4f24\">label<\/span>>\r\n        &lt;<span style=\"color:#bf4f24\">input<\/span> <span style=\"color:#bf4f24\">type<\/span>=<span style=\"color:#0b6125\">\"checkbox\"<\/span> <span style=\"color:#bf4f24\">class<\/span>=<span style=\"color:#0b6125\">\"checkbox\"<\/span> <span style=\"color:#bf4f24\">id<\/span><span style=\"color:#794938\">=<\/span><span style=\"color:#0b6125\">\"agree\"<\/span> <span style=\"color:#bf4f24\">name<\/span>=<span style=\"color:#0b6125\">\"agree\"<\/span>>\r\n    &lt;\/<span style=\"color:#bf4f24\">p<\/span>>\r\n    &lt;<span style=\"color:#bf4f24\">p<\/span>>\r\n        &lt;<span style=\"color:#bf4f24\">input<\/span> <span style=\"color:#bf4f24\">class<\/span>=<span style=\"color:#0b6125\">\"submit\"<\/span> <span style=\"color:#bf4f24\">type<\/span>=<span style=\"color:#0b6125\">\"submit\"<\/span> <span style=\"color:#bf4f24\">value<\/span>=<span style=\"color:#0b6125\">\"Submit\"<\/span>>\r\n    &lt;\/<span style=\"color:#bf4f24\">p<\/span>>\r\n&lt;\/<span style=\"color:#bf4f24\">form<\/span>>\r\n<\/pre>\n<h2>CSS Code<\/h2>\n<p>The following CSS is used to styling the form and error message.<\/p>\n<pre><span style=\"color:#bf4f24\">.userform<\/span>{<span style=\"color:#691c97\">width<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">400<span style=\"color:#794938\">px<\/span><\/span>;}\r\n<span style=\"color:#bf4f24\">.userform<\/span> <span style=\"color:#bf4f24\">p<\/span> {\r\n    <span style=\"color:#691c97\">width<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">100<span style=\"color:#794938\">%<\/span><\/span>;\r\n}\r\n<span style=\"color:#bf4f24\">.userform<\/span> <span style=\"color:#bf4f24\">label<\/span> {\r\n    <span style=\"color:#691c97\">width<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">120<span style=\"color:#794938\">px<\/span><\/span>;\r\n    <span style=\"color:#691c97\">color<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">#333<\/span>;\r\n    <span style=\"color:#691c97\">float<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">left<\/span>;\r\n}\r\n<span style=\"color:#bf4f24\">input<\/span><span style=\"color:#bf4f24\">.error<\/span> {\r\n    <span style=\"color:#691c97\">border<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">1<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#b4371f\">dotted<\/span> <span style=\"color:#b4371f\">red<\/span>;\r\n}\r\n<span style=\"color:#bf4f24\">label<\/span><span style=\"color:#bf4f24\">.error<\/span>{\r\n    <span style=\"color:#691c97\">width<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">100<span style=\"color:#794938\">%<\/span><\/span>;\r\n    <span style=\"color:#691c97\">color<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">red<\/span>;\r\n    <span style=\"color:#691c97\">font-style<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">italic<\/span>;\r\n    <span style=\"color:#691c97\">margin-left<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">120<span style=\"color:#794938\">px<\/span><\/span>;\r\n    <span style=\"color:#691c97\">margin-bottom<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">5<span style=\"color:#794938\">px<\/span><\/span>;\r\n}\r\n<span style=\"color:#bf4f24\">.userform<\/span> <span style=\"color:#bf4f24\">input<\/span><span style=\"color:#bf4f24\">.submit<\/span> {\r\n    <span style=\"color:#691c97\">margin-left<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">120<span style=\"color:#794938\">px<\/span><\/span>;\r\n}\r\n<\/pre>\n<p>Here we&#8217;ve used mostly used validation methods, you can also use many other validation rules as per your requirement. See the list of built-in Validation methods from <a href=\"https:\/\/jqueryvalidation.org\/documentation\/#link-list-of-built-in-validation-methods\" target=\"_blank\">Plugin website<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Client-side form validation is very useful for validating a form and it makes your web project more user-friendly. You can found many ways to perform client-side validation in HTML form, but jQuery Validation Plugin is <\/p>\n","protected":false},"author":1,"featured_media":1706,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[6],"tags":[214,16,213],"class_list":["post-1705","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-jquery","tag-form-validation","tag-jquery","tag-jquery-plugin","cat-6-id","has_thumb"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Form Validation using jQuery Validation Plugin - CodexWorld<\/title>\n<meta name=\"description\" content=\"The Easiest way to validate a form with jQuery Form Validation Plugin. Example code to integrate client-side form validation using jQuery Validation Plugin.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.codexworld.com\/jquery-form-validation-plugin\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Form Validation using jQuery Validation Plugin - CodexWorld\" \/>\n<meta property=\"og:description\" content=\"The Easiest way to validate a form with jQuery Form Validation Plugin. Example code to integrate client-side form validation using jQuery Validation Plugin.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.codexworld.com\/jquery-form-validation-plugin\/\" \/>\n<meta property=\"og:site_name\" content=\"CodexWorld\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/codexworld\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/codexworld\" \/>\n<meta property=\"article:published_time\" content=\"2016-07-19T16:55:26+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/07\/form-validation-using-jquery-validation-plugin-codexworld.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1366\" \/>\n\t<meta property=\"og:image:height\" content=\"768\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"CodexWorld\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@codexworldblog\" \/>\n<meta name=\"twitter:site\" content=\"@codexworldweb\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"CodexWorld\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/jquery-form-validation-plugin\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/jquery-form-validation-plugin\\\/\"},\"author\":{\"name\":\"CodexWorld\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#\\\/schema\\\/person\\\/9da51d8fa3cdefeb5ec9c69136d4baf0\"},\"headline\":\"Form Validation using jQuery Validation Plugin\",\"datePublished\":\"2016-07-19T16:55:26+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/jquery-form-validation-plugin\\\/\"},\"wordCount\":252,\"commentCount\":3,\"publisher\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/jquery-form-validation-plugin\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2016\\\/07\\\/form-validation-using-jquery-validation-plugin-codexworld.png\",\"keywords\":[\"Form Validation\",\"jQuery\",\"jQuery Plugin\"],\"articleSection\":[\"jQuery\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.codexworld.com\\\/jquery-form-validation-plugin\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/jquery-form-validation-plugin\\\/\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/jquery-form-validation-plugin\\\/\",\"name\":\"Form Validation using jQuery Validation Plugin - CodexWorld\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/jquery-form-validation-plugin\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/jquery-form-validation-plugin\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2016\\\/07\\\/form-validation-using-jquery-validation-plugin-codexworld.png\",\"datePublished\":\"2016-07-19T16:55:26+00:00\",\"description\":\"The Easiest way to validate a form with jQuery Form Validation Plugin. Example code to integrate client-side form validation using jQuery Validation Plugin.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/jquery-form-validation-plugin\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.codexworld.com\\\/jquery-form-validation-plugin\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/jquery-form-validation-plugin\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2016\\\/07\\\/form-validation-using-jquery-validation-plugin-codexworld.png\",\"contentUrl\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2016\\\/07\\\/form-validation-using-jquery-validation-plugin-codexworld.png\",\"width\":1366,\"height\":768,\"caption\":\"form-validation-using-jquery-validation-plugin-codexworld\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/jquery-form-validation-plugin\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.codexworld.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Form Validation using jQuery Validation Plugin\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#website\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/\",\"name\":\"CodexWorld\",\"description\":\"Web &amp; Mobile App Development Company\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.codexworld.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#organization\",\"name\":\"CodexWorld\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2014\\\/09\\\/codexworld-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2014\\\/09\\\/codexworld-logo.png\",\"width\":200,\"height\":19,\"caption\":\"CodexWorld\"},\"image\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/codexworld\",\"https:\\\/\\\/x.com\\\/codexworldweb\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/codexworld\",\"https:\\\/\\\/www.youtube.com\\\/codexworld\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#\\\/schema\\\/person\\\/9da51d8fa3cdefeb5ec9c69136d4baf0\",\"name\":\"CodexWorld\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g\",\"caption\":\"CodexWorld\"},\"description\":\"CodexWorld is a programming blog, one-stop destination for web professionals \u2014 developers, programmers, freelancers, and site owners.\",\"sameAs\":[\"http:\\\/\\\/www.codexworld.com\",\"https:\\\/\\\/www.facebook.com\\\/codexworld\",\"https:\\\/\\\/x.com\\\/codexworldblog\"],\"url\":\"https:\\\/\\\/www.codexworld.com\\\/author\\\/nitya192265\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Form Validation using jQuery Validation Plugin - CodexWorld","description":"The Easiest way to validate a form with jQuery Form Validation Plugin. Example code to integrate client-side form validation using jQuery Validation Plugin.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.codexworld.com\/jquery-form-validation-plugin\/","og_locale":"en_US","og_type":"article","og_title":"Form Validation using jQuery Validation Plugin - CodexWorld","og_description":"The Easiest way to validate a form with jQuery Form Validation Plugin. Example code to integrate client-side form validation using jQuery Validation Plugin.","og_url":"https:\/\/www.codexworld.com\/jquery-form-validation-plugin\/","og_site_name":"CodexWorld","article_publisher":"https:\/\/www.facebook.com\/codexworld","article_author":"https:\/\/www.facebook.com\/codexworld","article_published_time":"2016-07-19T16:55:26+00:00","og_image":[{"width":1366,"height":768,"url":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/07\/form-validation-using-jquery-validation-plugin-codexworld.png","type":"image\/png"}],"author":"CodexWorld","twitter_card":"summary_large_image","twitter_creator":"@codexworldblog","twitter_site":"@codexworldweb","twitter_misc":{"Written by":"CodexWorld","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.codexworld.com\/jquery-form-validation-plugin\/#article","isPartOf":{"@id":"https:\/\/www.codexworld.com\/jquery-form-validation-plugin\/"},"author":{"name":"CodexWorld","@id":"https:\/\/www.codexworld.com\/#\/schema\/person\/9da51d8fa3cdefeb5ec9c69136d4baf0"},"headline":"Form Validation using jQuery Validation Plugin","datePublished":"2016-07-19T16:55:26+00:00","mainEntityOfPage":{"@id":"https:\/\/www.codexworld.com\/jquery-form-validation-plugin\/"},"wordCount":252,"commentCount":3,"publisher":{"@id":"https:\/\/www.codexworld.com\/#organization"},"image":{"@id":"https:\/\/www.codexworld.com\/jquery-form-validation-plugin\/#primaryimage"},"thumbnailUrl":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/07\/form-validation-using-jquery-validation-plugin-codexworld.png","keywords":["Form Validation","jQuery","jQuery Plugin"],"articleSection":["jQuery"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.codexworld.com\/jquery-form-validation-plugin\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.codexworld.com\/jquery-form-validation-plugin\/","url":"https:\/\/www.codexworld.com\/jquery-form-validation-plugin\/","name":"Form Validation using jQuery Validation Plugin - CodexWorld","isPartOf":{"@id":"https:\/\/www.codexworld.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.codexworld.com\/jquery-form-validation-plugin\/#primaryimage"},"image":{"@id":"https:\/\/www.codexworld.com\/jquery-form-validation-plugin\/#primaryimage"},"thumbnailUrl":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/07\/form-validation-using-jquery-validation-plugin-codexworld.png","datePublished":"2016-07-19T16:55:26+00:00","description":"The Easiest way to validate a form with jQuery Form Validation Plugin. Example code to integrate client-side form validation using jQuery Validation Plugin.","breadcrumb":{"@id":"https:\/\/www.codexworld.com\/jquery-form-validation-plugin\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.codexworld.com\/jquery-form-validation-plugin\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.codexworld.com\/jquery-form-validation-plugin\/#primaryimage","url":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/07\/form-validation-using-jquery-validation-plugin-codexworld.png","contentUrl":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/07\/form-validation-using-jquery-validation-plugin-codexworld.png","width":1366,"height":768,"caption":"form-validation-using-jquery-validation-plugin-codexworld"},{"@type":"BreadcrumbList","@id":"https:\/\/www.codexworld.com\/jquery-form-validation-plugin\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.codexworld.com\/"},{"@type":"ListItem","position":2,"name":"Form Validation using jQuery Validation Plugin"}]},{"@type":"WebSite","@id":"https:\/\/www.codexworld.com\/#website","url":"https:\/\/www.codexworld.com\/","name":"CodexWorld","description":"Web &amp; Mobile App Development Company","publisher":{"@id":"https:\/\/www.codexworld.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.codexworld.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.codexworld.com\/#organization","name":"CodexWorld","url":"https:\/\/www.codexworld.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.codexworld.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2014\/09\/codexworld-logo.png","contentUrl":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2014\/09\/codexworld-logo.png","width":200,"height":19,"caption":"CodexWorld"},"image":{"@id":"https:\/\/www.codexworld.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/codexworld","https:\/\/x.com\/codexworldweb","https:\/\/www.linkedin.com\/company\/codexworld","https:\/\/www.youtube.com\/codexworld"]},{"@type":"Person","@id":"https:\/\/www.codexworld.com\/#\/schema\/person\/9da51d8fa3cdefeb5ec9c69136d4baf0","name":"CodexWorld","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g","caption":"CodexWorld"},"description":"CodexWorld is a programming blog, one-stop destination for web professionals \u2014 developers, programmers, freelancers, and site owners.","sameAs":["http:\/\/www.codexworld.com","https:\/\/www.facebook.com\/codexworld","https:\/\/x.com\/codexworldblog"],"url":"https:\/\/www.codexworld.com\/author\/nitya192265\/"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/07\/form-validation-using-jquery-validation-plugin-codexworld.png","jetpack_shortlink":"https:\/\/wp.me\/p6bxIh-rv","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/posts\/1705","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/comments?post=1705"}],"version-history":[{"count":1,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/posts\/1705\/revisions"}],"predecessor-version":[{"id":1707,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/posts\/1705\/revisions\/1707"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/media\/1706"}],"wp:attachment":[{"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/media?parent=1705"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/categories?post=1705"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/tags?post=1705"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}