javascript remove "disabled" attribute from html input

Viewed 284880

How can I remove the "disabled" attribute from an HTML input using javascript?

<input id="edit" disabled>

at onClick I want my input tag to not consist of "disabled" attribute.

6 Answers

Best answer is just removeAttribute

element.removeAttribute("disabled");
$("#input-id").attr("disabled", false)
Related