problem which I can not solve

problem which I can not solve


  1. $("#aPlus").click(function(){
  2. stevilo1 = $("#txtCena").val();
  3. stevilo2 = $("#txtKolicina").val();
  4. stevilo2++;
  5. $("#txtKolicina").val(stevilo2);
  6. $.ajax({
  7. type: "POST",
  8. url: "mnozenje.php",
  9. data: "stevilo1="+stevilo1+"&stevilo2="+stevilo2,
  10. success: function(vred){
  11.       $("#spanSkupaj").hide().text(vred).fadeIn("slow");
  12.       $("#hideSkupaj").val(vred);
  13.         }
  14.         });
  15.         skupaj = $("#hideSkupaj").val();
  16. $.ajax({
  17. type: "POST",
  18. url: "ddv.php",
  19. data: "stevilo="+skupaj,
  20.            success: function(ddv){
  21.               $("#spanDDV").hide().text(ddv).fadeIn("slow");
  22. }
  23. });
  24. });

Why second $.ajax is not immediately activate. Thx for answer.