Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JQuery selector builder? [closed]

I was wondering if such a tool exists in a browser. You select any item on the page like a <p> tag nested in several div's and the tool creates a JQuery selector for it which I can copy and use in my Javascript function.

like image 349
Tony_Henrich Avatar asked Jan 23 '23 22:01

Tony_Henrich


1 Answers

I think you should check out SelectorGadget. It is a JavaScript bookmarklet that allows you to interactively select items on the page and spits you out the exact targeting selector based on the DOM.

Its pretty advanced, watch the screencast!

like image 115
Derek P. Avatar answered Feb 01 '23 23:02

Derek P.