html code:
Jquery Code:
$(\'[id$=b
Try to use jQuery class selector:
CssClass="MyButton"
disabled="disabled"
jQuery:
$('button.MyButton').click(function(){ $(this).attr('disabled', 'disabled'); });