I am trying to pass id from one script to another via javascript, I was able to pass one id, but I can not figure out how to pass 2 id
I have another identifier stored in the $ requestid variable, I want to pass it in the following code so that I can call it on the 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 someone tell me how I can do this without making big changes to the source code.
source
share