Created
February 9, 2017 19:06
-
-
Save msikma/2480f0a4af2b55b695172fc36b748f56 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(function(){ | |
jQuery('.showSingle').click(function(){ | |
jQuery('.targetDiv').hide(); | |
jQuery('#div'+jQuery(this).attr('target')).show(); | |
}); | |
}); | |
wordt: | |
$(function(){ | |
$('.showSingle').click(function(){ | |
$('.targetDiv').hide(); | |
$('#div'+$(this).attr('target')).show(); | |
}); | |
$('.showSingle:first-child').click(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment