Labs/Ubiquity/jQuery in Ubiquity

From MozillaWiki
< Labs‎ | Ubiquity
Jump to: navigation, search

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