To enable/disable a button with jQuery you need to use two methods, attr () and removeAttr () as follows: $ ('.enableOnInput').prop ('disabled', true); //TO DISABLED $ jquery input button disable. Post navigation The property values can be explicitly retrieved using the prop () method. < script >. The syntax is as shown below: < button id ="id">. What you are seeing is a conflict between that functionality and your own calls to the button ().enable () and button ().disable () method. For example, $ (document).ready (function () { $ ('#submit'). Examples incl $("#button").attr("disabled", true); The solution to the previously mentioned problem, Jquery Add Disabled To Button, can also How to enable /disable buttons in jquery? $("#button").attr("disabled", true); Level up your programming skills with exercises across 52 languages, and insightful discussion with our dedicated team of welcoming mentors. Application using button One button can be used to send the user entered text from a textarea. Once youve clicked on the button, you will find that you wont be able to click on it again until you have refreshed the page. Here's the step by If a row is selected the buttons are enabled. prop ('disabled', true); // SET THE PROPERTY AFTER THE PAGE HAS LOADED. disable $('#Button1Id').attr('disabled','disabled'); To do so, you have to add a disabled attribute to the submit button, as follows:$ (#buttonSubmit).attr (disabled, true); HTML 3. alert ($ ('#b3' ).prop ( 'disabled' )); Above code will return true or false based on the status of the button. To understand example first few methods to know. The jQuery prop () function can be used to disable a button. style button when disabled and enabled in jquery. You can set the property in the