My current code is currently passing only one parameter value. However, I would like to modify it to pass two values with two parameters.
This is my current code:
<script>
function getfilter(str){
document.getElementById("result").innerHTML="<div class='sparea'><i class='fa fa-spinner fa-spin sparea' ></i><div></script";
if (str==""){
document.getElementById("result").innerHTML="";
return;
}
$.ajax({
url: "Views/mapresult.php?q="+str,
type: "GET",
success: function ( responseText ) {
$("#result").empty().append($(responseText));
}
});
}
</script>
<li class="android" data-mosaic-filterby="android" onclick="getfilter(this.id)" id="'.$cd[$i][0].'" >'.$cd[$i][1].'</li>
However, I want to pass two parameters instead of one.
For example:
<li class="android" data-mosaic-filterby="android" onclick="getfilter(this.id)" id1="'.$cd[$i][0].'" id2="'.$cd[$i][0].'" >'.$cd[$i][1].'</li