Skip to content

Instantly share code, notes, and snippets.

@omurphy27
Created March 4, 2013 04:36
Show Gist options
  • Save omurphy27/5079984 to your computer and use it in GitHub Desktop.
Save omurphy27/5079984 to your computer and use it in GitHub Desktop.
JQUERY - Target Two Elements Simultaneously with Click
// http://stackoverflow.com/questions/1313373/jquery-same-click-event-for-multiple-elements
$('.class1, .class2').click(some_function);
$('.class1').add('.class2').click(some_function);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment