• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.