This question is locked. New answers and comments are not allowed.
Hi
I did one application in mvc2 with jquery 1.4.4 it's working fine .then I convert to that application mvc2 to mvc 3 here j query 1.7.1 here i issue in my application checkbox.map funtion not wotking in mvc3
this is my code
I did one application in mvc2 with jquery 1.4.4 it's working fine .then I convert to that application mvc2 to mvc 3 here j query 1.7.1 here i issue in my application checkbox.map funtion not wotking in mvc3
$checkedRecords.map(function () { return this.value; }) it's not working in latest how to solve this .this is my code
function ManageStudentClassUpdate() { var $checkedRecords = $(':checked'); var to_class_id = $('#Classes_Move').data('tDropDownList'); var to_fiscal_year_id = $('#Fiscal_Year_Move').data('tDropDownList'); var str = to_class_id.text(); text = str.replace(/(?: |<br>)/g, ''); var str1 = to_fiscal_year_id.text(); var text1 = str1.replace(/(?: |<br>)/g, ''); if (text1 == '') { alert("plzs Select Fiscal Year"); return false; } if (text == '') { alert("plzs Select Class"); return false; } else if (to_class_id.value() == 0) { alert("plzs Select Class"); return false; } if ($checkedRecords.length < 1) { alert('No Student is Selected.'); return; } $.post(MSCUpdateURL, { to_class_id: to_class_id.value(), to_fiscal_year_id: to_fiscal_year_id.value(), studentIDs: $checkedRecords.map(function () { return this.value; }) }); to_class_id.text(''); to_class_id.value('') to_fiscal_year_id.text(''); to_fiscal_year_id.value('') }