Labs/Ubiquity/jQuery in Ubiquity

From MozillaWiki
< Labs‎ | Ubiquity
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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);