Question: how to get the selected text instead of value in dropdown menu?
Answer: value=array[i]. id; selectMenu. appendChild(option); } $(selectMenu). change(function(){ //i want to get the selected text here //I know I could get value by using $(this).