I am trying to pass id from one script to another through javascript, i have been able to pass one id, but i am not able to understand how to pass 2 id
I have another id stored in $requestid variable, i wish to pass it in the following code so that i can call it in c_getinfo.php page
<span class='ListId' data-id="<?php echo $row1['id'];?>">
<script>
$('.ListId').click(function(){
var Id=$(this).attr('data-id');
$.ajax({url:"c_getinfo.php?Id="+Id,cache:false,success:function(result){
$(".ShowData").html(result);
}});
});
</script>
can anyone please tell how i can do so, without making much changes to original code
dataproperty. Also, usetypeto set the type -GET/POST...