Team:Heidelberg/languageIntroTest

From 2013.igem.org

(Difference between revisions)
m
m
Line 41: Line 41:
$( document ).ready(function() {
$( document ).ready(function() {
-
$(".lang input").click(function(e){
+
$(".lang input[name='langOptions']").change(function(){
-
   console.log("I was clicked");
+
   console.log(jQuery(this).val());
-
   console.log(e.target);
+
   //console.log(e.target);
-
   btn = $(e.target);
+
   //btn = $(e.target);
-
   btnLang = btn.attr("data-target");
+
   //btnLang = btn.attr("data-target");
-
   jQuery("#languageTexts div").hide(); //remove previous texts!
+
   //jQuery("#languageTexts div").hide(); //remove previous texts!
-
   jQuery(btnLang).show();
+
   //jQuery(btnLang).show();
});
});
});
});
</script>
</script>
</html>
</html>

Revision as of 11:33, 4 October 2013