[jQuery] submit a submit value through ajax

[jQuery] submit a submit value through ajax


Hello i have a form with 2
<input class="plus" type="submit" value="0" name="plus"/>
<input class="minus" type="submit" value="0" name="minus"/>
buttons in it and i want to receive these values through my ajax calls
$('#cart_quantity').submit(function(){
var serialized_values = $('#cart_quantity').serialize()
+'&ajax=ajax_calls&what=cart';
var checked_basename = check_ssl($(this).attr('action'));
$.ajax
({url:checked_basename,data:serialized_values,type:'POST',dataType:'json',success:function
(data){put_it_in(data)},beforeSend:function(){show_loader('show');}});
return false;
});
but in the receiving php the input type submit value is missing
how can i handle this???















    • Topic Participants

    • info