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:

File Upload Using Angular Js and Node Js

28-05-2018 AngularJs Node js file upload multer module

How to upload file by using request module

18-03-2017 request module node js

Filter for change Date Time format (MM-dd-yyyy HH:mm) in Angular Js

05-03-2017 mm-dd-yyyy HH:MM date formats angular js

Filters for convert text to camel case in Angular Js

05-03-2017 angularjs camelcase filters

Send Mail in Node Js

21-02-2017 node js mail npm module