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

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -