What version of jQuery you using? If you need disable a link, you can add a CSS class .disabled
to that link with this jQuery command:
$("#my_btn").addClass("disabled");
This code below is working for INPUT only
jQuery 1.6+
$("input").prop('disabled', true);
$("input").prop('disabled', false);
jQuery 1.5 and below
$("input").attr('disabled','disabled');
$("input").removeAttr('disabled');
In any version of jQuery
// assuming an event handler thus 'this'
this.disabled = true;
You can check this thread: Disable/enable an input with jQuery? and here you will find your answer I hope :)