Answers for "html readonly attribute in jquery"

1

jquery set attribute readonly

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

// jQuery >= 1.9
$('#id').prop('readonly', true);
Posted by: Guest on November-25-2020

Code answers related to "html readonly attribute in jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language