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

Line 10: Line 10:
 
<!-- multiple dropdown -->
 
<!-- multiple dropdown -->
 
<select data-placeholder="Choose an option..." id="select-chosen" class="chosen" multiple="true" style="width:400px;">
 
<select data-placeholder="Choose an option..." id="select-chosen" class="chosen" multiple="true" style="width:400px;">
<option>PCR</option>
+
<option value="PCR">PCR</option>
<option>Wiki</option>
+
<option value="Wiki">Wiki</option>
<option selected="selected">Crowd funding</option>
+
<option value="Cf">Crowd funding</option>
 
</select>
 
</select>
 
<script type="text/javascript">
 
<script type="text/javascript">
Line 23: Line 23:
 
<script type="text/javascript">
 
<script type="text/javascript">
 
$(".chosen").chosen().change(function(event) {
 
$(".chosen").chosen().change(function(event) {
     alert('testchosen');
+
     alert(+$(this).val());
    //console.log('select2 change', event, $(event.target).val());
+
 
});
 
});
 
</script>
 
</script>
 +
 
<button type="button" id="btn_hide">Hide</button>
 
<button type="button" id="btn_hide">Hide</button>
 
<script type="text/javascript">
 
<script type="text/javascript">

Revision as of 08:47, 17 July 2015

Notebook

Search for a content: