Use attr method:
$('#inputId').attr('readonly', true);
Reference:
http://stackoverflow.com/questions/1306708/add-readonly-to-input-jquery
$('#inputId').attr('readonly', true);
Reference:
http://stackoverflow.com/questions/1306708/add-readonly-to-input-jquery
No comments:
Post a Comment