SyntaxFix
Write A Post
Hire A Developer
Questions
In vanilla/pure javascript you can check as following -
var field = document.querySelector("input[name='fieldName']"); if(field.readOnly){ alert("foo"); }