Skip to content

Instantly share code, notes, and snippets.

@ItsMurumba
Created August 7, 2018 06:29
Show Gist options
  • Select an option

  • Save ItsMurumba/df3b49e7a0a484196ea1879904e62aa8 to your computer and use it in GitHub Desktop.

Select an option

Save ItsMurumba/df3b49e7a0a484196ea1879904e62aa8 to your computer and use it in GitHub Desktop.
This code worked for me. You can replace $(this).val() with #target
$('.'+ $(this).val()).show(); $('.tabcontent2 tr:not(.'+ $(this).val() +')').hide();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment