Answers for "readonly 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
1

how to set element readonly using jquery

To make an input readonly use: $("#fieldName"). attr('readonly','readonly');
Posted by: Guest on April-28-2021
1

add readonly attribute jquery

$(input).attr('readonly', true);
Posted by: Guest on June-11-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language