Sunday, March 26, 2017

Enable/Disable input type Button using JQuery



HTML
<input type="button" disabled value="Submit" id="button-submit"/>

JavaScript
//To enable
$('#button-submit').button('enable');

//To disable
$('#button-submit').button('disable);

No comments:

Post a Comment