Skip to content

How to pass value dropdown using javascript

venky n

Asked Mar 11, 2015, 3:50 AM EDT1 answer
Share
LinkedInX
i am create google map using javascript.1st coding am using textbox to pass latitude and longitude value ,map is show correct way.

But ,that some work in 2coding . am modify to drop down control  to pass latitude and longitude value .not working.
please help me..




1.Text box coding:

























Enter Latitude:
Enter Longitude:






working this code.







 2.dropdown coding:












 






this code not working..

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Pranay Rana
    0
    you can do like this to get value

    var e = document.getElementById('<%= ddcity.ClientID %>');
    Code
    var strUser = e.options[e.selectedIndex].value;
    0