Msg#: 4461224 posted 2:07 pm on Jun 4, 2012 (gmt 0)
i have this button set in the following html segment. The set is part of a jquery dialog. I'm trying to add a class to but the first button in the set but it does not appear in firebug. Can someone tell me what's wrong with my selector?
Msg#: 4461224 posted 2:59 pm on Jun 4, 2012 (gmt 0)
Well, the space is needed.
$('#workorder-window.ui-dialog-buttonset button') That selector is looking for the button descendants of the element that has both the id workorder-window AND the class ui-dialog-buttonset.
$('#workorder-window .ui-dialog-buttonset button') That selector is looking for the button descendants of the element that has the class ui-dialog-buttonset that is a descendant of the element with id workorder-window.
Looking at your markup, this second one is the selector you are trying to match.
Note, I don't see #workorder-button in your markup.
Msg#: 4461224 posted 5:01 pm on Jun 4, 2012 (gmt 0)
ummm wait - i have to find it.
OMG... I'm now officially an idiot and your a certified genius!
You just made me realize that the "#workorder-button" markup no longer exists. I've been trying to get this ValidationEngine plugin to work properly for 2 days now not realizing that it was not even being executed (but thinking that it was) because the dialog was actually being fired via another div that is bound to the dialog.
the add class problem is now moot because the original problem i was trying to solve - getting ValidationEngine to work - now works correctly, thanks to you.
Man... i really have to go back to school or get a new brain.