Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Live testing jQuery selector

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.

like image 264
Marko Avatar asked Apr 08 '10 12:04

Marko


3 Answers

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

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

like image 166
Alex Gyoshev Avatar answered Oct 30 '22 10:10

Alex Gyoshev


Yes, you can simply use Firebug for Firefox or Chrome, or, you can use something like jsBin. Firebug being exactly what you need

Hope this helps

like image 39
Marcos Placona Avatar answered Oct 30 '22 08:10

Marcos Placona


Perfect extension to embed jQuery into Chrome Console as simple as you can imagine. This extension also indocates if jQuery has been already embeded into page.

This extension used to embed jQuery into any page you want. It allows to use jQuery in the console shell (You can invoke Chrome console by "Ctrl+Shift+j").

To embed jQuery into selected tab click on extention button.

LINK to extension: https://chrome.google.com/extensions/detail/gbmifchmngifmadobkcpijhhldeeelkc

like image 25
Andrey Avatar answered Oct 30 '22 10:10

Andrey