1
Good morning Guys, I have an application with Jquery Easyui, and I always call the button click actions with Jquery, as an example below:
$("#btnEditar").click(function(){
...
});
It happens that when you click the button and it is disabled, it continues to perform the Jquery Click action.
I wonder if it would be possible to run the Button Click only if it is without a certain css class, in my case . l-btn-disabled. I performed the test as below but it did not work:
$("#btnEditar").not(".l-btn-disabled").click(function(){
...
});
Grateful for the attention.
that element
#btnEditar
is abutton
or ainput[type=button]
?– Richard Dias