DropDown With Onchange Event |
Simple Bootstrap Code:
<div class="container-fluid"> <div class="row"> <div class="col-md-offset-4 col-md-4 text-center"> <div class="form-group" style="margin-top: 50px;"> <label for="group">Dropdown List</label> <select id="list" onchange="changeValue()" class="form-control"> <option value="0">Select Item</option> <option value="1">Item One</option> <option value="2">Item Two</option> <option value="3">Item Three</option> <option value="4">Item Four</option> <option value="5">Item Five</option> </select> </div> </div> </div> </div> <script> function changeValue() { var value = $("#list").val(); alert(value); } </script> Here I have created a git repo for you: https://github.com/shahnewaz24557/ci-sim...n-onchange |
Messages In This Thread |
DropDown With Onchange Event - by shurimano - 05-07-2018, 05:49 PM
RE: DropDown With Onchange Event - by shahnewaz - 05-08-2018, 02:33 AM
RE: DropDown With Onchange Event - by qury - 05-08-2018, 03:33 AM
|