I have the following html element:
<span class="btn btn-mini btn-primary row-remove" onclick="someFunction(param1, param2)">
<i>Remove</i>
</span>
When I do something else, I am disabling those buttons on the page:
$(".row-remove").attr("disabled", true);
The issue is, if you click the disabled button it still fires the "onclick", which is causing a big issue (there's a reason the buttons are disabled).
Is there any way to "disable" the onclick event as well? I've tried unbinding "click" but as excepted it didn't work (it's onclick, not bind()).
Thanks.
Best, Gary