asp.net mvc - Get Value of dropdowns with same name using jquery -


In my asp net MVC application some dropdowns are shown with the same name (say: 5 dropdowns with 5 names)

I want all the selected values ​​of the drop-down to jquery with the same name

How to get it?

You $ ('Select [name = "uniquedropdown"]'). Val () as

= $ .map ($ ('select [name = "unicudropod"]), function (e) {returns ('Option: selected', e) .val ();});

or

  var value = $ .map ($ (' Select [name = "unicodeproduction"]), function (e) {return $ (e) .val ();});  

This is a Add / edit to URL for

tag

Comments

Popular posts from this blog

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

Which Python client library should I use for CouchdB? -