Monday, March 14, 2011

How to disable and enable button in JQuery

// To disable 
$('.someElement').attr('disabled', 'disabled');

// To enable 
$('.someElement').removeAttr('disabled');

1 comment:

  1. how do we do with an asp.net button? this doesn't work with an asp.net button that is enabled or disabled on server side

    ReplyDelete