Difference between revisions of "Team:Pasteur Paris/test"

Line 23: Line 23:
 
   //TODO: foreach with querySelectotAll
 
   //TODO: foreach with querySelectotAll
 
   document.getElementById('week1').style.display = "none";
 
   document.getElementById('week1').style.display = "none";
 +
  document.getElementById('week2').style.display = "none";
 +
  document.getElementById('week3').style.display = "none";
 +
  document.getElementById('week4').style.display = "none";
 +
  document.getElementById('week5').style.display = "none";
 +
  document.getElementById('week6').style.display = "none";
 +
  document.getElementById('week7').style.display = "none";
 +
  document.getElementById('week8').style.display = "none";
 +
  document.getElementById('week9').style.display = "none";
 +
  document.getElementById('week10').style.display = "none";
 +
  document.getElementById('week11').style.display = "none";
 +
  document.getElementById('week12').style.display = "none";
 +
  document.getElementById('week13').style.display = "none";
 +
  document.getElementById('week14').style.display = "none";
 +
  document.getElementById('week15').style.display = "none";
 
}
 
}
 
</script>
 
</script>
Line 48: Line 62:
 
$(".chosen").chosen().change(function(event) {
 
$(".chosen").chosen().change(function(event) {
 
     //Hide everything
 
     //Hide everything
    alert('Donald');
 
 
     hideALL();
 
     hideALL();
 
     var Countries = $("#select-chosen").chosen().val();
 
     var Countries = $("#select-chosen").chosen().val();
 +
    for each (var item in Countries) {
 +
        alert(item);
 +
    }
 
     alert(Countries);
 
     alert(Countries);
 
});
 
});

Revision as of 09:23, 17 July 2015

Notebook

Search for a content: