jQuery check if field is read only

Sam Deering
Share

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

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