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.