<script> $(function(){ $("#Alert").click(function(){ $('#AlertsTable').show(); }); });
<select id="myDropdown" width="200" size="2"> <option value="Alert" id="Alert" selected="selected">Alert</option> <option value="IR">IR</option> <option value="Site">Site</option> <option value="Devices">Devices</option> </select>
<div id="myDropdown" class="dropdown-content"> <a value="Alert" type="button" class="btn btn-lg btn-default" href="#">Alert</a> <a value="IR" type="button" class="btn btn-lg btn-default" href="#">Incident Report</a> <a value="Site" type="button" class="btn btn-lg btn-default" href="#">Site</a> <a value="Devices" type="button" class="btn btn-lg btn-default" href="#">Devices</a> </div>
$(function () { $('#myDropdown').change(function (a, b) { var value = a.target.value; if (value == 'Alert') { alert(value); } }); });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)