I am in need of a solution to enable and disable a link button using JavaScript as part of a custom validator that I am designing.
It came to my attention that setting "disabled=true" will disable a standard button, but it has no effect on a link button.
After experimenting with jQuery, I found that the following actually disables the button:
$(button).click( function() { return false; }
This method works well for disabling the button. However, I am struggling to figure out how to re-enable it! Neither of these options seem to work:
$(button).click( function() { return true; }
$(button).click( function() { }
If anyone could provide guidance on how to re-enable my button or suggest a different approach to disabling it, I would greatly appreciate it.
Thanks, Matt