There are two ways to disable or enable form elements.
Set the 'disabled' attribute to true or false:
// Disable #pcds $('#pcds').attr('disabled', true); // Enable #pcds $('#pcds').attr('disabled', false);
Add or remove the 'disabled' attribute:
// Disable #pcds $("#pcds").attr('disabled', 'disabled'); // Enable #x $("#pcds").removeAttr('disabled');