jQuery selector help - Can I generate a selector from clicking on an element?
Posted
by Kettenbach
on Stack Overflow
See other posts from Stack Overflow
or by Kettenbach
Published on 2009-12-10T23:30:08Z
Indexed on
2010/03/15
17:39 UTC
Read the original article
Hit count: 314
Hi All, I have jQuery, FireFox, Firebug, IE, and IE developer toolbar. When I am examing a page with either FireBug or IE Dev toolbar, I am able to click on an element and it shows me in the dom where the element is etc... Is there anyway to transform that selection into a valid jQuery selector? I know I can use ID, classes, and element relative to other elements etc... but what about when I am looking at some random table cell that doesn't have a class or id etc.. Can I generate a selector on the fly like that? I thought for sure there was. Any thoughts or ideas are always appreciated
Thanks, ~ck in San Diego
© Stack Overflow or respective owner