Jquery Set Attribute Readonly

Source URL: N/A

Language: javascript

Created on: 2020-11-25 16:21:25

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

// jQuery >= 1.9
$('#id').prop('readonly', true);
Jquery Set Attribute Readonly
content_copy