I have made a button disabled by adding class (.addclass) its still disabled but clickable. But if I made that button disabled by adding .attr then its working as expected. How can I make a button disabled and not clickable by using .addclass in jquery
$(this._eButton).addClass("disabled");
//this is allowing the button to click even button is disabled
$(this._eButton).attr("disabled", true);
//this works as expected