Labs/Ubiquity/jQuery in Ubiquity

From MozillaWiki
< Labs‎ | Ubiquity
Revision as of 00:56, 6 September 2008 by Gfraser (talk | contribs)
Jump to navigation Jump to search

Here's an example of using jQuery in Ubiquity:

// get the active document

var doc = Application.activeWindow.activeTab.document;

// find div.foo in the body of that document

jQuery('div.foo', doc.body);