You are on page 1of 1

// To disable

$('.someElement').attr('disabled', 'disabled');
In order to enable any disabled element you need to set the disabled attribute t
o empty string or remove it entirely like in the code below.
// To enable
$('.someElement').removeAttr('disabled');
// OR you can set attr to ""
$('.someElement').attr('disabled', '');

You might also like