if you are attaching events to an anchor element and don't want it to be clickable when you "disable" it, try the following. Since 'disabled' it not a valid attribute for anchor tags, I would suggest you add a class of 'disabled' to it and within the event check for that class like so:
- $('a').click(function(e){
- e.preventDefault();
- if($(this).hasClass('disabled')){
- return false;
- }
- //default code here
- });
I would also suggest that you add a disabled looking state in your css if it has a .disabled class applied to it.