Line 57: | Line 57: | ||
<script> | <script> | ||
− | + | $('#showall').click(function(){ | |
− | + | $('div').show(); | |
− | + | }); | |
− | + | ||
− | + | $('#showdiv1').click(function(){ | |
− | + | $('div[id^=div]').hide(); | |
− | + | $('#div1').show(); | |
− | + | }); | |
+ | $('#showdiv2').click(function(){ | ||
+ | $('div[id^=div]').hide(); | ||
+ | $('#div2').show(); | ||
+ | }); | ||
+ | |||
+ | $('#showdiv3').click(function(){ | ||
+ | $('div[id^=div]').hide(); | ||
+ | $('#div3').show(); | ||
+ | }); | ||
+ | |||
+ | $('#showdiv4').click(function(){ | ||
+ | $('div[id^=div]').hide(); | ||
+ | $('#div4').show(); | ||
+ | |||
}); | }); | ||
</script> | </script> |
Revision as of 13:33, 10 August 2017