Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save razvanstan/5794697 to your computer and use it in GitHub Desktop.
Save razvanstan/5794697 to your computer and use it in GitHub Desktop.
[jQuery] find element by data attribute
$('#id').find('[data-name="' + js_var + '"]');
@baltazartbf
Copy link

Exactly what I needed. Thanks!

@0x113
Copy link

0x113 commented Jul 2, 2018

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment