Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Telerik MVC Extensions (superseded) > General Discussions > checkedRecords.map function not working in j query 1.7.1 in mvc 3

Not answered checkedRecords.map function not working in j query 1.7.1 in mvc 3

Feed from this thread
  • shanker bangari Intermediate avatar

    Posted on Jun 26, 2012 (permalink)

    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 

    $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('')
       
    }

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Telerik MVC Extensions (superseded) > General Discussions > checkedRecords.map function not working in j query 1.7.1 in mvc 3