Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery set attribute readonly

// jQuery < 1.9
$('#id').attr('readonly', true);

// jQuery >= 1.9
$('#id').prop('readonly', true);
 
PREVIOUS NEXT
Tagged: #jquery #set #attribute #readonly
ADD COMMENT
Topic
Name
5+7 =