Advertisement
krot

JQ AJAX кол-во товара

Dec 18th, 2015
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function CountSelect(el){
  2. if($(el).val()<=0)return;
  3. $.ajax({
  4.  type: "GET",
  5.  url: "form.php",
  6.  data: $(el).attr('rel')+$(el).val(),
  7.  success: function(msg){
  8. if(msg==1){
  9. location.reload();
  10. }
  11. }
  12. });
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement