Fotiman - 2:59 pm on Jun 4, 2012 (gmt 0)
Well, the space is needed.
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.