.net - ASP.net MVC 3 Multi-Select List -


i wanted know how values multi-select list when has been selected?

i have created multi-select list populating database. there use html helpers show deopdown list on view.

@html.listbox("id", model.id) 

my question how can values user has chosen. multi-select list thanks

also dont want have refresh page, unless have to.

this jquery solve problem

var values = $("#id option:selected").text(); 

hope helps.


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

image - ClassNotFoundException when add a prebuilt apk into system.img in android -