So I have this piece of code:
var delete_disabled = (parseInt(row.attr("data-state"), 10) === serverVars.obligationStateNotStarted) ? '' : 'disabled="disabled"';
newHtml += "<button class=\"delete small\"" + delete_disabled + " title=\"" + labelDelete + "\"><i class=\"icon-trash\"></i></button>";
It checks if a certain criteria is met and if it is then it disables the button however once the button is disabled I would like something still to happen when I click on it? I've tried everything I can think of and was hoping for some suggestions. Thanks in advance :)