🤯 New: Coding Assessments Practice your skills on real-world programming challenges

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'))
{
  ...
}