Team:Heidelberg/languageIntroTest

From 2013.igem.org

(Difference between revisions)
m
m
Line 7: Line 7:
   <label class="btn btn-default">
   <label class="btn btn-default">
-
     <input type="radio" name="options" id="option1" data-target=".french"> <img style="max-width:10px;" src="https://static.igem.org/mediawiki/2013/b/b8/Heidelberg_start_flags_France.png">
+
     <input type="radio" name="langOptions" id="option1" data-target=".french"> <img style="max-width:10px;" src="https://static.igem.org/mediawiki/2013/b/b8/Heidelberg_start_flags_France.png">
   </label>
   </label>
   <label class="btn btn-default">
   <label class="btn btn-default">
-
     <input type="radio" name="options" id="option2" data-target=".italian"> <img style="max-width:10px;" src="https://static.igem.org/mediawiki/2013/b/b8/Heidelberg_start_flags_France.png">
+
     <input type="radio" name="langOptions" id="option2" data-target=".italian"> <img style="max-width:10px;" src="https://static.igem.org/mediawiki/2013/b/b8/Heidelberg_start_flags_France.png">
   </label>
   </label>
   <label class="btn btn-default">
   <label class="btn btn-default">
-
     <input type="radio" name="options" id="option3"> <img style="max-width:10px;" src="https://static.igem.org/mediawiki/2013/b/b8/Heidelberg_start_flags_France.png">
+
     <input type="radio" name="langOptions" id="option3"> <img style="max-width:10px;" src="https://static.igem.org/mediawiki/2013/b/b8/Heidelberg_start_flags_France.png">
   </label>
   </label>
</div>
</div>
Line 41: Line 41:
$( document ).ready(function() {
$( document ).ready(function() {
-
$(".lang input[name='langOptions']").change(function(){
+
$(".lang input[name='langOptions']").click(function(){
 +
  console.log("bla");
   console.log(jQuery(this).val());
   console.log(jQuery(this).val());
   //console.log(e.target);
   //console.log(e.target);

Revision as of 11:37, 4 October 2013