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.

//if field is not read only
if($(this).attr('disabled'))
{
  ...
}
  • Erik Roznbeker

    Also, if($(this).attr('readonly')) is good to check…

Recommended
Sponsors
Get the latest in JavaScript, once a week, for free.