JavaScript
Article
By Sam Deering

jQuery check if field is read only

By Sam Deering

A jQuery code snippet to check if field is read only.

--ADVERTISEMENT--

//if field is not read only
if($(this).attr('disabled'))
{
  ...
}
Recommended
Sponsors
The most important and interesting stories in tech. Straight to your inbox, daily. Get Versioning.
Login or Create Account to Comment
Login Create Account