html - Populate Drop down based on Selection in Javascript -
i have 2 drop downs in first given names of employees , in second designation. want lets select first employee pm , tl both second drop down should show pm tm , when select pm second in first shows employees pm. want if possible multi select first drop down
<select> <!--this main selectbox.--> <option value="">select</option> <option>john</option> <option>brendon</option> <option>davin</option> <option>bobby</option> </select> <select class="sub"> <!--another selectbox option one.--> <option>tl</option> <option>pm</option> </select> <select class="sub"> <!--another selectbox option two.--> <option>pm</option> <option>tl</option> </select> <select class="sub"> <!--another selectbox option three.--> <option>developer</option> </select> <select class="sub"> <!--another selectbox option four.--> <option>developer</option> </select>
here fiddle demo
Comments
Post a Comment