Dojo Select widget validation style
- by jamstooks
Many dojo form widgets, like DateTextBox will style themselves in red (claro theme) with an "!" to indicate that the field isn't valid after focus. I can't seem to get this type of styling to work with the Select widget. I have the value set to required, but if the user leaves it in the default state, blank, then it remains unstyled.
I tried to test this programmatically:
wigs = dijit.findWidgets(node);
for( i = 0; i < wigs.length; i++ ) {
wigs[i].focus();
}
This triggers validation on several other widgets and they are styled appropriately, but not he Select widgets. Anyone know how to make it obvious that those select widgets are not validating?
Oh, and wigs[i].isValid() is definitely false for those select widgets.