Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery add disabled to id

$("#inputID"). prop('disabled', true); //disable.
$("#inputID"). prop('disabled', false); //enable.
$("#inputID"). attr('disabled','disabled'); //disable.
$("#inputID"). removeAttr('disabled'); //enable.
 
PREVIOUS NEXT
Tagged: #jquery #add #disabled #id
ADD COMMENT
Topic
Name
5+8 =