SyntaxFix
Write A Post
Hire A Developer
Questions
Given -
<input name="foo" type="text" value="foo" readonly />
this works - (jquery 1.7.1)
$('input[name="foo"]').prop('readonly', true);
tested with readonly and readOnly - both worked.