17 Oct 2011

jQuery disable and enable an element

 

To Disable:

$('#elementID').attr('disabled', 'disabled');

To Enable:

$('#elementID').removeAttr('disabled');

 

No comments:

Post a Comment