I have an .aspx page with a databound multi-select jquery dropdown. This works nicley but how can i get hold of the selected items in the code behind?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
You can use jquery dropdown cheklist
. Here is how you can get selected items
http://dropdown-check-list.googlecode.com/svn/trunk/doc/dropdownchecklist.html
see line 261
.
回答2:
You can get Select Items by using below Code and store this selected item in an array for further need.
var phddoc = new Array();
$.each($("#phddoct").next().find('input').filter(':checked'), function() {
phddoc.push($(this).val());
});
here 'phddoct' is the id of the select box[multiselect object]
best wishes.. shareef m2d