Skip to content

Instantly share code, notes, and snippets.

@avireni
Created April 13, 2012 23:16
Show Gist options
  • Select an option

  • Save avireni/2380739 to your computer and use it in GitHub Desktop.

Select an option

Save avireni/2380739 to your computer and use it in GitHub Desktop.
Filter using multiple-attributes
var elements = $('#someid input[type=sometype][value=somevalue]').get();
//This precision-based approached can be useful when you use lots of similar input elements which have different types
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment