Hi Ian
you're rendering a javascript text to the html page.
in this case, because it's onready, is after the DOM gets loaded and before load.
js := format( '%s.parent().addClass(''deptLookupEx'')', [dlgDepartmentLookup.GetIDJQuery ] );
the js value will be something this is javascript expression,
$("#DLGDEPARTMENTLOOKUP").addClass('deptLookupEx'');
in this case is an expression using jQuery library.
$(selector)
in the selector part you can use many things, i advise you to research.
one of the selector types, is using just for an HTML ID
$("#HTMLID")
the $(selector) returns an array, depending of the selector.
And then there are a lot of use full methods like
.addClass() .removeClass()
with jQuery you can do many things, and it's always the same code, because it's cross-browser.
I think we can say that anyone doing web apps, even most worried about server, must now as much as js / jQuery as need to now about SQL
Maybe we could start making some topics for the basics of jQuery and css
About your question, I would have to check,
in browser, you can try execute this code
$("#DLGDEPARTMENTLOOKUP").addClass('deptLookupEx'');
in browser console to check the effect.
Best Regards