I have this code:
var partnum = $(this).attr('href');
$.ajax({
type: "POST",
url: "kosarica.php",
data: "do=makni&partnum="+partnum+""
});
$.ajax({
type: "POST",
url: "kosarica.php",
data: "do=get_gotovina&partnum="+partnum+"",
success: function(msg){
alert( "Data Saved: " + msg );
}
});
the first $.ajax works fine, but the second doesn't get the partnum variable...when i comment out the first $.ajax.. the second one works normaly..
so i guess i should rename each $.ajax so they are not called the same... or what?
how can i fix it?
Ty!

New Topic/Question
Reply


MultiQuote



|