tags:

views:

57

answers:

4

No, I'm not talking about the visualizer plugin.

There are cheap or free tools to visualize the results of XPath queries, or Regex.

Example:
alt text

alt text

Is there a similar tool that helps one visualize the results of jQuery selectors?
I know it wouldn't be difficult to build... Just wanna know if one exists yet.

+1  A: 

You can put $('div.product').get() into Firebug or whatever console you're using to get a list of matching elements.

sakabako
+3  A: 

Use firebug. Open the console. Run something like this:

$("p").css('background-color', 'blue');

and press 'Run'.

kgiannakakis
+1  A: 

Yep, this one does the job pretty well:

http://www.woods.iki.fi/interactive-jquery-tester.html

Mark B
Excellent. +1.....
Cheeso
A: 

For Safari, the Web Inspector has a console you can use to achieve this.

rosscj2533