Template:Team:UC Davis/MutantWidget
From 2011.igem.org
(Difference between revisions)
Line 1: | Line 1: | ||
<html> | <html> | ||
<script> | <script> | ||
- | selectedelements = [null | + | selectedelements = [null null]; |
curelement = 0; | curelement = 0; | ||
$(document).ready(function(){ | $(document).ready(function(){ | ||
Line 26: | Line 26: | ||
} else | } else | ||
{ | { | ||
- | + | if(selectedelements[curelement] != null) | |
- | + | { | |
+ | selectedelements[curelement].removeClass("selected"); | ||
+ | selectedelements[curelement].children().eq($(this).parent().index()).hide(); | ||
+ | } | ||
selectedelements[curelement] = $(this); | selectedelements[curelement] = $(this); | ||
$(this).addClass("selected"); | $(this).addClass("selected"); |
Revision as of 18:31, 21 September 2011