Coding⏱️ 1 min read📅 2026-06-03

How to Fix: How to remove "disabled" attribute using jQuery?

The issue is that the disabled attribute is being removed from the input element, but it's not being re-added. The correct way to remove the disabled attribute is to use the prop method instead of attr.

Quick Answer: Use the prop method to set the disabled property to false: $(".inputDisabled").prop("disabled", false);

To enable inputs, you need to use the enabled attribute instead of disabled. The reason why your code didn't work is that jQuery's removeAttr method only removes attributes from an element, but it doesn't set them to a specific value. When you set disabled=

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database