SyntaxFix
Write A Post
Hire A Developer
Questions
Try following or check demo disabled and readonly
$('#dropUnit').is(':disabled') //Returns bool $('#dropUnit').attr('readonly') == "readonly" //If Condition
You can check jQuery FAQ .