{"id":94013,"date":"2019-07-19T10:00:14","date_gmt":"2019-07-19T07:00:14","guid":{"rendered":"http:\/\/www.javacodegeeks.com\/?p=94013"},"modified":"2019-07-18T14:32:59","modified_gmt":"2019-07-18T11:32:59","slug":"jquery-disable-button-after-submit-example","status":"publish","type":"post","link":"https:\/\/www.javacodegeeks.com\/2019\/07\/jquery-disable-button-after-submit-example.html","title":{"rendered":"jQuery Disable button after submit Example"},"content":{"rendered":"<p>In this article, we will look at how to disable the submit button after a form submit in jQuery. It will prevent the user from submitting the form multiple times. We also cater to the possibility that the form submit is invalid or fails validation and thus we would re enable the button in such case. We will use jQuery library for this example. Using jQuery to select the appropriate submit button of each form on the page and disabling the correct one to prevent duplicate form submits.<\/p>\n<p>So without further delay lets start building our example application. For the purposes of this example we will use the following stack for our application.<\/p>\n<ul class=\"wp-block-list\">\n<li><a rel=\"noreferrer noopener\" aria-label=\"Node.js (opens in a new tab)\" href=\"https:\/\/nodejs.org\/en\/\" target=\"_blank\">Node.js<\/a><\/li>\n<li><a rel=\"noreferrer noopener\" aria-label=\"jQuery (opens in a new tab)\" href=\"https:\/\/jquery.com\/\" target=\"_blank\">jQuery<\/a><\/li>\n<li><a href=\"https:\/\/code.visualstudio.com\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Visual Studio Code IDE (opens in a new tab)\">Visual Studio Code IDE<\/a><\/li>\n<\/ul>\n<p>We use Node.js which is a server side JavaScript framework to quickly spin up a web server. jQuery is a UI library to iron over differences in JavaScript implementation between browser vendors and browser versions. Visual Studio Code IDE is a free tool that I am most comfortable with but you are free to use one that you feel at home with.<\/p>\n<h2 class=\"wp-block-heading\">1. Application Structure<\/h2>\n<p>Our application folder structure looks like below:<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"369\" height=\"378\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2019\/07\/ProjectStructureButtonDisable.jpg\" alt=\"jQuery Disable button - Project Structure\" class=\"wp-image-94261\" srcset=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2019\/07\/ProjectStructureButtonDisable.jpg 369w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2019\/07\/ProjectStructureButtonDisable-293x300.jpg 293w\" sizes=\"(max-width: 369px) 100vw, 369px\" \/><figcaption>Project Structure<\/figcaption><\/figure>\n<\/div>\n<h2 class=\"wp-block-heading\">2. HTML Markup<\/h2>\n<p><span style=\"text-decoration: underline\"><em>index.html<\/em><\/span><div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<pre class=\"brush: html;\">&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n&lt;head&gt;\n    &lt;script src=\"https:\/\/code.jquery.com\/jquery-3.4.1.slim.min.js\"\n        integrity=\"sha256-pasqAKBDmFT4eHoN2ndd6lN370kFiGUFyTiUHWhU7k8=\" crossorigin=\"anonymous\"&gt;&lt;\/script&gt;\n    &lt;script src=\"myscript.js\"&gt;&lt;\/script&gt;\n    &lt;style&gt;\n        body {\n            height: 500px;\n            width: 100%;\n        }\n        .flex-container {\n            height: 100%;\n            display: flex;\n            flex-direction: column-reverse;\n            justify-content: center;\n            align-items: center;\n        }\n    &lt;\/style&gt;\n&lt;\/head&gt;\n\n&lt;body&gt;\n    &lt;div class=\"flex-container\"&gt;\n        &lt;form&gt;\n            &lt;fieldset&gt;\n                &lt;legend&gt;JCG -- jQuery Disable Submit Button Example&lt;\/legend&gt;\n                &lt;label for=\"inputEmail\"&gt;Email address&lt;\/label&gt;\n                &lt;input type=\"email\" id=\"inputEmail\" aria-describedby=\"emailHelp\" placeholder=\"Enter email\"&gt;\n\n                &lt;label for=\"inputPassword\"&gt;Password&lt;\/label&gt;\n                &lt;input type=\"password\" id=\"inputPassword\" placeholder=\"Password\"&gt;\n\n                &lt;input type=\"checkbox\" id=\"rememberMe\"&gt;\n                &lt;label for=\"rememberMe\"&gt;Remember Me&lt;\/label&gt;\n\n                &lt;button type=\"submit\"&gt;Submit&lt;\/button&gt;\n            &lt;\/fieldset&gt;\n        &lt;\/form&gt;\n    &lt;\/div&gt;\n&lt;\/body&gt;\n&lt;\/html&gt; <\/pre>\n<p>This is what our landing page markup looks like, it has a simple login form with a submit button. It prompts the user for their email address and password and provides a Remember Me checkbox. I have used some style rules to layout the page.<\/p>\n<h2 class=\"wp-block-heading\">3. jQuery Script<\/h2>\n<p>To disable the submit button we will add a handler for the form&#8217;s submit event. In this event handler we will select the submit button and set its disabled attribute to disable it. We will also set the text of the button to a string, submitting form, to indicate to the user that the form is under processing. The selector for submit event handler would look like below:<\/p>\n<pre class=\"brush: js;\">$('form').submit(function (event) {});\n<\/pre>\n<p>Once we select the form we will, on submit event, disable the button which is a part of the form. To just select the button that is part of the form and not others on the page. We will use the below selector:<\/p>\n<pre class=\"brush: js;\">$('button', this);\n<\/pre>\n<p>Notice the second param in the selector, it ensures that the button which is part of this form is selected. Once selected we will set the attribute using the attr jQuery function. As well as set the text of the button to &#8220;submitting&#8230;&#8221; like below:<\/p>\n<pre class=\"brush: js;\">$(\"button\", this).attr(\"disabled\", \"disabled\");\n$(\"button\", this).text(\"Submitting...\");<\/pre>\n<p>Final version of our script, residing in myscript.js looks like below:<\/p>\n<p><span style=\"text-decoration: underline\"><em>myscript.js<\/em><\/span><\/p>\n<pre class=\"brush: js;\"> $(document).ready(function() {\n    $(\"form\").submit(function(event) {\n        $(\"button\", this).attr('disabled', 'disabled');\n        $(\"button\", this).text(\"Submitting...\");\n        event.preventDefault();\n    });\n}); <\/pre>\n<p>Notice the event.preventDefault() method call, it is there for the purposes of this demo and cancels the form submit and subsequent page refresh. So that we can see our script in action. It is not necessary other wise.<\/p>\n<h2 class=\"wp-block-heading\">4. Example in Action<\/h2>\n<p>Now we can run our code by typing the below commands at the root of the project<\/p>\n<pre class=\"brush: bash;\">&gt;npm install\n&gt;npm start\n<\/pre>\n<p>Next we navigate to the url http:\/\/localhost:8080 to see our code in action. On clicking the Submit button we can see the below results.<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"707\" height=\"225\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2019\/07\/jQueryButtonDisableDemo-1.jpg\" alt=\"\" class=\"wp-image-94414\" srcset=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2019\/07\/jQueryButtonDisableDemo-1.jpg 707w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2019\/07\/jQueryButtonDisableDemo-1-300x95.jpg 300w\" sizes=\"(max-width: 707px) 100vw, 707px\" \/><figcaption>Project Output<\/figcaption><\/figure>\n<\/div>\n<h2 class=\"wp-block-heading\">5. Download the Source Code<\/h2>\n<div class=\"download\"><strong>Download<\/strong><br \/>\nYou can download the full source code of this example here: <a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2019\/07\/JCG-Disable-Button-Example.zip\"><strong>jQuery Disable button after submit Example<\/strong><\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>In this article, we will look at how to disable the submit button after a form submit in jQuery. It will prevent the user from submitting the form multiple times. We also cater to the possibility that the form submit is invalid or fails validation and thus we would re enable the button in such &hellip;<\/p>\n","protected":false},"author":82952,"featured_media":93701,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1913],"tags":[209],"class_list":["post-94013","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-jquery","tag-jquery"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>jQuery Disable button after submit Example - Java Code Geeks<\/title>\n<meta name=\"description\" content=\"Interested to learn more about jQuery? Then check out our detailed example on jQuery Disable button after submit Example!\" \/>\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.javacodegeeks.com\/2019\/07\/jquery-disable-button-after-submit-example.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"jQuery Disable button after submit Example - Java Code Geeks\" \/>\n<meta property=\"og:description\" content=\"Interested to learn more about jQuery? Then check out our detailed example on jQuery Disable button after submit Example!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.javacodegeeks.com\/2019\/07\/jquery-disable-button-after-submit-example.html\" \/>\n<meta property=\"og:site_name\" content=\"Java Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/javacodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2019-07-19T07:00:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2019\/06\/jquery-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Siddharth Seth\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Siddharth Seth\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2019\\\/07\\\/jquery-disable-button-after-submit-example.html#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2019\\\/07\\\/jquery-disable-button-after-submit-example.html\"},\"author\":{\"name\":\"Siddharth Seth\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/09c54717e2cc7956aa8a2df61330f18c\"},\"headline\":\"jQuery Disable button after submit Example\",\"datePublished\":\"2019-07-19T07:00:14+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2019\\\/07\\\/jquery-disable-button-after-submit-example.html\"},\"wordCount\":530,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2019\\\/07\\\/jquery-disable-button-after-submit-example.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2019\\\/06\\\/jquery-logo.jpg\",\"keywords\":[\"jQuery\"],\"articleSection\":[\"jQuery\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2019\\\/07\\\/jquery-disable-button-after-submit-example.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2019\\\/07\\\/jquery-disable-button-after-submit-example.html\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2019\\\/07\\\/jquery-disable-button-after-submit-example.html\",\"name\":\"jQuery Disable button after submit Example - Java Code Geeks\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2019\\\/07\\\/jquery-disable-button-after-submit-example.html#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2019\\\/07\\\/jquery-disable-button-after-submit-example.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2019\\\/06\\\/jquery-logo.jpg\",\"datePublished\":\"2019-07-19T07:00:14+00:00\",\"description\":\"Interested to learn more about jQuery? Then check out our detailed example on jQuery Disable button after submit Example!\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2019\\\/07\\\/jquery-disable-button-after-submit-example.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2019\\\/07\\\/jquery-disable-button-after-submit-example.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2019\\\/07\\\/jquery-disable-button-after-submit-example.html#primaryimage\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2019\\\/06\\\/jquery-logo.jpg\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2019\\\/06\\\/jquery-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2019\\\/07\\\/jquery-disable-button-after-submit-example.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Web Development\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/web-development\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"JavaScript\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/web-development\\\/javascript\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"jQuery\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/web-development\\\/javascript\\\/jquery\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"jQuery Disable button after submit Example\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"name\":\"Java Code Geeks\",\"description\":\"Java Developers Resource Center\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"alternateName\":\"JCG\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.javacodegeeks.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/javacodegeeks\",\"https:\\\/\\\/x.com\\\/javacodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/09c54717e2cc7956aa8a2df61330f18c\",\"name\":\"Siddharth Seth\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/86a5133a5e9d79f7997e2649b1afe58e895c0d88df47b3359103ec4c1a2077d6?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/86a5133a5e9d79f7997e2649b1afe58e895c0d88df47b3359103ec4c1a2077d6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/86a5133a5e9d79f7997e2649b1afe58e895c0d88df47b3359103ec4c1a2077d6?s=96&d=mm&r=g\",\"caption\":\"Siddharth Seth\"},\"description\":\"Siddharth is a Software Development Professional with a Master degree in Computer Applications from IGNOU. He has over 14 years of experience. And currently focused on Software Architecture, Cloud Computing, JavaScript Frameworks for Client and Server, Business Intelligence.\",\"sameAs\":[\"https:\\\/\\\/www.linkedin.com\\\/in\\\/siddharth-seth-240180\\\/\"],\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/author\\\/siddharth_seth1980\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"jQuery Disable button after submit Example - Java Code Geeks","description":"Interested to learn more about jQuery? Then check out our detailed example on jQuery Disable button after submit Example!","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.javacodegeeks.com\/2019\/07\/jquery-disable-button-after-submit-example.html","og_locale":"en_US","og_type":"article","og_title":"jQuery Disable button after submit Example - Java Code Geeks","og_description":"Interested to learn more about jQuery? Then check out our detailed example on jQuery Disable button after submit Example!","og_url":"https:\/\/www.javacodegeeks.com\/2019\/07\/jquery-disable-button-after-submit-example.html","og_site_name":"Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_published_time":"2019-07-19T07:00:14+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2019\/06\/jquery-logo.jpg","type":"image\/jpeg"}],"author":"Siddharth Seth","twitter_card":"summary_large_image","twitter_creator":"@javacodegeeks","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Siddharth Seth","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.javacodegeeks.com\/2019\/07\/jquery-disable-button-after-submit-example.html#article","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/2019\/07\/jquery-disable-button-after-submit-example.html"},"author":{"name":"Siddharth Seth","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/09c54717e2cc7956aa8a2df61330f18c"},"headline":"jQuery Disable button after submit Example","datePublished":"2019-07-19T07:00:14+00:00","mainEntityOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2019\/07\/jquery-disable-button-after-submit-example.html"},"wordCount":530,"commentCount":0,"publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2019\/07\/jquery-disable-button-after-submit-example.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2019\/06\/jquery-logo.jpg","keywords":["jQuery"],"articleSection":["jQuery"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.javacodegeeks.com\/2019\/07\/jquery-disable-button-after-submit-example.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.javacodegeeks.com\/2019\/07\/jquery-disable-button-after-submit-example.html","url":"https:\/\/www.javacodegeeks.com\/2019\/07\/jquery-disable-button-after-submit-example.html","name":"jQuery Disable button after submit Example - Java Code Geeks","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2019\/07\/jquery-disable-button-after-submit-example.html#primaryimage"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2019\/07\/jquery-disable-button-after-submit-example.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2019\/06\/jquery-logo.jpg","datePublished":"2019-07-19T07:00:14+00:00","description":"Interested to learn more about jQuery? Then check out our detailed example on jQuery Disable button after submit Example!","breadcrumb":{"@id":"https:\/\/www.javacodegeeks.com\/2019\/07\/jquery-disable-button-after-submit-example.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.javacodegeeks.com\/2019\/07\/jquery-disable-button-after-submit-example.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/2019\/07\/jquery-disable-button-after-submit-example.html#primaryimage","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2019\/06\/jquery-logo.jpg","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2019\/06\/jquery-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.javacodegeeks.com\/2019\/07\/jquery-disable-button-after-submit-example.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.javacodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Web Development","item":"https:\/\/www.javacodegeeks.com\/category\/web-development"},{"@type":"ListItem","position":3,"name":"JavaScript","item":"https:\/\/www.javacodegeeks.com\/category\/web-development\/javascript"},{"@type":"ListItem","position":4,"name":"jQuery","item":"https:\/\/www.javacodegeeks.com\/category\/web-development\/javascript\/jquery"},{"@type":"ListItem","position":5,"name":"jQuery Disable button after submit Example"}]},{"@type":"WebSite","@id":"https:\/\/www.javacodegeeks.com\/#website","url":"https:\/\/www.javacodegeeks.com\/","name":"Java Code Geeks","description":"Java Developers Resource Center","publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"alternateName":"JCG","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.javacodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.javacodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.javacodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/javacodegeeks","https:\/\/x.com\/javacodegeeks"]},{"@type":"Person","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/09c54717e2cc7956aa8a2df61330f18c","name":"Siddharth Seth","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/86a5133a5e9d79f7997e2649b1afe58e895c0d88df47b3359103ec4c1a2077d6?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/86a5133a5e9d79f7997e2649b1afe58e895c0d88df47b3359103ec4c1a2077d6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/86a5133a5e9d79f7997e2649b1afe58e895c0d88df47b3359103ec4c1a2077d6?s=96&d=mm&r=g","caption":"Siddharth Seth"},"description":"Siddharth is a Software Development Professional with a Master degree in Computer Applications from IGNOU. He has over 14 years of experience. And currently focused on Software Architecture, Cloud Computing, JavaScript Frameworks for Client and Server, Business Intelligence.","sameAs":["https:\/\/www.linkedin.com\/in\/siddharth-seth-240180\/"],"url":"https:\/\/www.javacodegeeks.com\/author\/siddharth_seth1980"}]}},"_links":{"self":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/94013","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/users\/82952"}],"replies":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=94013"}],"version-history":[{"count":0,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/94013\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media\/93701"}],"wp:attachment":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media?parent=94013"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=94013"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=94013"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}