Team:Freiburg/Project/toolkit
From 2013.igem.org
(Difference between revisions)
Line 11: | Line 11: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
- | + | $(document).ready(function(){ | |
- | + | $('.radioBtn').click(function(){ | |
- | + | var div_id = $(this).attr('div_id'); | |
- | + | $('.my-div').hide(); | |
- | + | $('.me_'+div_id).show(); | |
- | + | }); | |
- | + | }); | |
- | + | ||
- | + | ||
- | + | ||
</script> | </script> | ||
Line 40: | Line 37: | ||
} | } | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
Line 92: | Line 83: | ||
- | < | + | <div class="my-div me_1">1</div> |
- | + | <div class="my-div me_2">2</div> | |
- | + | <div class="my-div me_3">3</div> | |
- | + | <div class="my-div me_4">4</div> | |
- | + | <div class="my-div me_5">5</div> | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
+ | <input type="radio" div_id="1" class="radioBtn"> | ||
+ | <input type="radio" div_id="2" class="radioBtn"> | ||
+ | <input type="radio" div_id="3" class="radioBtn"> | ||
+ | <input type="radio" div_id="4" class="radioBtn"> | ||
+ | <input type="radio" div_id="5" class="radioBtn"> | ||
Revision as of 23:39, 17 September 2013
1
2
3
4
5