How would you code a if conditional check in dojo?
if(!dojo.query("#idOfHhtmlField").attr("disabled") == true)
{
//do something
}
Here I am trying to compare if #idOfHhtmlField‘s disabled attribute is set to true or not, but it doesnt seem to be working for me.
i tested this html in dojo,here:
since you can set div’s disabled in ie8, so it returns all true.
but in chrome only the buttons return true.
you should check if #idOfHhtmlField is a form element .
update
i suggest you detect disabled this way,because browsers do not need its value:
i know little about dojo , because dojo.query().attr() returns an object,it is weired!
and here is the official guide.