Skip to content

Instantly share code, notes, and snippets.

@peterwilsoncc
Created July 15, 2011 03:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterwilsoncc/1083991 to your computer and use it in GitHub Desktop.
Save peterwilsoncc/1083991 to your computer and use it in GitHub Desktop.
Excessively long jQuery selector
var $maps = $('a[href^="http://maps.google.com.au/maps?"]:has(img[src^="http://maps.google.com/maps/api/staticmap?"]),img[src^="http://maps.google.com/maps/api/staticmap?"]:not(a[href^="http://maps.google.com.au/maps?"] img)');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment