Skip to content
This repository has been archived by the owner on Feb 17, 2021. It is now read-only.

jQuery selector example #13

Closed
bsides opened this issue Jul 30, 2013 · 6 comments
Closed

jQuery selector example #13

bsides opened this issue Jul 30, 2013 · 6 comments
Labels

Comments

@bsides
Copy link

bsides commented Jul 30, 2013

I believe it'd be very nice to have a jQuery selector example for target. After a lot of time testing, the final one I used was just the string "table tr:first-child td", but I didn't find it in the documentation.

Also, since this script's main use if for a tutorial after an event happened, it'd be nice i it was possible to bind it to an event.

Thank you.

@kate2753 kate2753 added the docs label Jan 21, 2015
@satya1395
Copy link

@bsides , any idea on how to use query selector for custom attributes (viewid)
-- <div viewid="94116fe4-633b-4422-8b6a-f7d24bee610d" ..

@bsides
Copy link
Author

bsides commented Jul 24, 2015

That's more specific to jQuery, @satish11nov but answering:

$('div[viewid]')

@satya1395
Copy link

ok so in my case it would be something like..
$('div[viewid]='94116fe4-633b-4422-8b6a-f7d24bee610d'')

@bsides
Copy link
Author

bsides commented Jul 24, 2015

I suggest you to ask that in Stack Exchange or jQuery forums, but again answering, I believe the correct way to do that specifically for this one is $('div[viewid=94116fe4-633b-4422-8b6a-f7d24bee610d') or with quotes $('div[viewid="94116fe4-633b-4422-8b6a-f7d24bee610d"]')

@satya1395
Copy link

you are right. I have already figured out that syntax. Thanks a lot @bsides

@timlindvall
Copy link
Collaborator

Closing as duplicate of #105.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants