Welcome Guest, Not a member yet? Register   Sign In
How to send array in jquery to controller?
#4

[eluser]T I[/eluser]
It shd work. Smile
Code:
$('#submit').click(function() {

        var jname = $('#name').val();
        var jprincipal = $('#principal').val();
        var jpayment = $('#monthly_payment').val();
        var jrate = $('#interest_rate').val();

        $.getJSON("<?= site_url('debt_sw/save') ?>", {debt_name: jname,principal:jprincipal,monthly:jpayment,interest_rate:jrate}, function(data) {

          if(data)
              {
                   $("#update").html(data);
                 $("tr:even").css("background-color", "#7FDDF6");
                 $("tr:odd").css("background-color", "#ECECEC");

              }

        });
    });
});


Messages In This Thread
How to send array in jquery to controller? - by El Forum - 01-09-2010, 01:04 AM
How to send array in jquery to controller? - by El Forum - 01-09-2010, 05:14 AM
How to send array in jquery to controller? - by El Forum - 01-09-2010, 06:35 AM
How to send array in jquery to controller? - by El Forum - 01-09-2010, 06:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB