get the select element in .NET using AJAX

-=[OmD]=-

New Member
I have ajax function like this to run on HTML select list \[code\]$.ajax({ type: "POST", url: urlemp, success: function (returndata) { if (returndata.ok) { // var data = http://stackoverflow.com/questions/14545738/eval("" + returndata.data + ""); select.empty(); select.append($('<option>' + "" + '</option>')); $.each(returndata.data, function (rec) { select.append($('<option>' + returndata.data[rec].Name + '</option>')); }); select.show('slow'); select.change(); } else { window.alert(' error : ' + returndata.message); } } } );\[/code\]and this is the HTML element \[code\] <select id="cmbDept"></select>\[/code\]How can i get the value of the selected item in the controller using MVC 3 ?
 
Back
Top