Live testing jQuery selector

Marko picture Marko · Apr 8, 2010 · Viewed 9.2k times · Source

Is it possible to conveniently test jQuery selectors on some random web page using some sort of plugin for browser (Firefox)?

It would be nice if it could automatically highlight selected elements.

Answer

Alex Gyoshev picture Alex Gyoshev · Apr 8, 2010

Firebug + jQuerify bookmarklet (if there's no jQuery included on the page).

You can achieve highlighting using outline, $('.test').css('outline', '3px solid red');