Menu Close

How to add / remove “disabled” attribute in input tag using jQuery?

add / remove “disabled” attribute using jQuery

Follow the below code to add / edit disabled attribute in input tag.

//Add disabled attribute
$("input").prop("disabled", true);

//Remove disabled attribute
$("input").prop("disabled", false); 
Posted in HTML, JavaScript, jQuery

You can also read...