Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Form serialize for an array in a form
- <input type="text" name="products[]" />
- var products = $('#orderDetsForm').serialize();
- eve.preventDefault();
- $.ajax({
- type: "POST",
- url: "/orders/index.php/processOrder/addOrderDets",
- data: {dets: products},
- success: function(data){
- $("#productList").html(data);
Add Comment
Please, Sign In to add comment