Here's an example of using jQuery in Ubiquity:
// get the active document in a secure way var doc = CmdUtils.getDocument(); // find div.foo in the body of that document jQuery('div.foo', doc.body);