Html5 DropDownList

Bind to the select event by type:jqxDropDownButton. Author: http://jqwidgets.com Author: http://jqwidgets.com

HTML

<link rel="stylesheet" href="http://jqwidgets.com/public/jqwidgets/styles/jqx.base.css">
<link rel="stylesheet" href="http://jqwidgets.com/public/jqwidgets/styles/jqx.energyblue.css">
<script src="http://jqwidgets.com/public/jqwidgets/jqx-all.js"></script>
<div id='jqxDropDownList'></div>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<div id="Button1" style="display:none;">
Button 1
</div>
<div id="Button2" style="display:none;">
Button 2
</div>

JavaScript

var source = [
      "Affogato",
      "Americano",
      "Bicerin",
      "Breve",
      "Café Bombón",
      "Affogato",
      "Americano",
      "Bicerin",
      "Breve",
      "Café Bombón",
      "Café au lait"];
  // Create a jqxDropDownList
  $("#jqxDropDownList").jqxDropDownList({
      source: source,
      theme: 'energyblue'
  });
  
  $('#jqxDropDownList').on('select', function (event) {
       var args = event.args;
       if (args) {
           // index represents the item's index.                          
           var index = args.index;
           var item = args.item;
           // get item's label and value.
           var label = item.label;
           var value = item.value;
       }
       if(label = 'Americano'){
			$("#Button1").show();
       $("#Button2").hide();
		   }
      if(label = 'Bicerin'){
			$("#Button2").show();
       $("#Button1").hide();
		   }
   });