I am using a asp drop down list. According to my requirement I need to set the values of that drop down list through external java script file. How is it possible? I will not use document object to get the drop down Id.
I am using a asp drop down list. According to my requirement I need
Share
If you can set up the list of option values as a js array then you can use jQuery’s $.each method to build the dropdown like this
HTML
JQuery
Working Fiddle