dropdown list using js

Solutions on MaxInterview for dropdown list using js by the best coders in the world

showing results for - "dropdown list using js"
Evangelos
13 Jan 2017
1<!DOCTYPE html>
2<html>
3<body>
4
5<form>
6  Select your favorite browser:
7  <select id="myList" onchange="myFunction()">
8    <option></option>
9    <option>Google Chrome</option>
10    <option>Firefox</option>  
11    <option>Internet Explorer</option>
12    <option>Safari</option>
13    <option>Opera</option>
14  </select>
15<p>Your favorite browser is: <input type="text" id="demo" size="20"></p>
16</form>
17<script>
18function myFunction() {
19  var mylist = document.getElementById("myList");
20  document.getElementById("demo").value = mylist.options[mylist.selectedIndex].text;
21}
22</script>
23</body>
24</html>
queries leading to this page
how to display dropdown list using javascripthow to make a drop down list in javascriptdropdown jsdropdown js exmaplescreate dropdown list using javascriptdropdown with jsul to dropdown jsdropdown menu jslist to dropdown jscreate dropdown list from javascriptdrop down list with javascripthow to select item of drop down list in javascriptusing dropdown elements for javascript functionsarray in dropdown javascriptdropdown an element javascriptdropdown in javascriptdropdown list html javascriptdropdown menu with jsjs dropdowndrop down list javascript examplejavscript dropdownjavascript dropdownselect from dropdown list with jshow to create a drop down list in javascripthow to use drop down list in javascripthow create list dropdown whith jsdrop down list javascriptdropdown list using jsdropdown in javascriptdropdown element javascriptdropdown list in javsacriptdropdown using javascriptjs dropdown commandsdrop down list using jsaccess dropdown list in javascripthow to create drop down list in javascriptjavascript dropdown itemjs dropdown menuget the drop down list in jsjavascript dropdown listdrop down list in jsjs make dropdown listdropdown list jsdrop down list in javascriptdropdown menus jsdropdown list in form javascriptdropdown in jsdropdown list in html and javascripthtml drop down list example with javascripthow create list dropdown with jsdropdown jsdrop down list jsdropdown list jabascripthow dropdowns work in javascriptdropdown with javascriptworking with drop down with jsdropdown examples javascriptdropdown list javascriptdropdown menu from list jscreate dropdown list in javascriptget dropdown list javascriptdropdown menu using jslist dropdown jscreate a drop down list javascriptjavascript dropdownlistdropdown javascripthow to make a drop down list in html using javascriptshow dropdown with jsdropdown list using js