I am trying to disable a button action link using jquery-1.5.1 but nothing seems to work. i have tried the following lines of code seperately.
$('#btnSave').fadeTo("fast", .5).removeAttr("href");
$('#btnSave').bind('click', false)
My aim is to disable the button after clicking so that the user does not click it again while the page is being posted to the server.
Please help.
use
oneinstead of.bind