Answer the question
In order to leave comments, you need to log in
jQuery AJAX GET How to pass multiple variables?
Hello!
i have code:
<a href="#" id ="'.$postrow['id'].'" static="12" class = "price">'.$postrow['id'].'</a>
<script LANGUAGE="JavaScript" >
$(document).ready(function(){
$('.price').click(function(){
var clkid = this.id;
$.ajax({
type: "GET",
url: "s33/info.php",
data: "id="+clkid,
success: function(html){
$("#info3").html(html);
}
});
return false;
});
});
</script>
Answer the question
In order to leave comments, you need to log in
replace data: "id="+clkid,
with data: "id="+clkid+"&static=12345",
to pass the number 12345 to static
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question