How to get drop down value when drop down change using javascript


Here is the sample example to the get value from the drop down

 Here the code is 

function changeFunction(){
	var color = document.getElementById('color').value;
<select onchange="changeFunction()" id="color">
<option value="black">Select Black</option>
<option value="red">Select Red</option>
<option value="blue">Select Blue</option>
<option value="green">Select Green</option>


You might also like:

Use java script file client side and server side at a time in node js

30-07-2017 node js include call javascript

How to upload file by using request module

18-03-2017 request module node js

How to use request module in node js

16-03-2017 request module node js

How to use http-post request in node js

14-03-2017 http-post module node js

How to change background color and color to the text using javascript

27-02-2017 css javascript colors