Team:Heidelberg/languageIntroTest

From 2013.igem.org

(Difference between revisions)
m
m
Line 6: Line 6:
<div class="btn-group lang" data-toggle="buttons">
<div class="btn-group lang" data-toggle="buttons">
-
   <label class="btn btn-default">
+
   <label class="btn btn-default french">
     <input type="radio" name="langOptions" id="option1" value=".french">  
     <input type="radio" name="langOptions" id="option1" value=".french">  
   </label>
   </label>
-
   <label class="btn btn-default">
+
   <label class="btn btn-default italian">
     <input type="radio" name="langOptions" id="option2" value=".italian">  
     <input type="radio" name="langOptions" id="option2" value=".italian">  
   </label>
   </label>
Line 44: Line 44:
   chosenLang = $(e.delegateTarget).attr("value");
   chosenLang = $(e.delegateTarget).attr("value");
   jQuery("#languageTexts div").hide(); //remove previous texts!
   jQuery("#languageTexts div").hide(); //remove previous texts!
-
   jQuery(chosenLang).show();
+
   jQuery("#languageTexts).find(chosenLang).show();
});
});
});
});

Revision as of 13:03, 4 October 2013

Thanks to