How to capture the ?id in the next page using html and javascript?
<p>I am using PhoneGap to write a app.
After I query items from my database, I need to list all of them and provide more details of the particular item that is being clicked.
I use GET method in PHP to capture the ?id so that I could query the database again to list details of that item, but I have no idea how to do that in PhoneGap by using only html and js.
I am not that familiar with html and js and search throught google but didnt find a good answer.
Btw, I could use Jquery as well</p>

<p>Here are the code, please help:)</p>

<pre><code>function querySuccess(tx, results){
    if(results.rows.length == 0)
    {
        $("#ReceiptsList").html("&lt;p&gt;You have no receipts captured yet&lt;/p&gt;");
    }
        else
    {
        var s = "";
        for(var i = results.rows.length-1; i&gt;=0; i--)
        s += "&lt;a href='edit.html?id="+results.rows.item(i).id+"'&gt;&lt;strong&gt;&lt;font size = 3&gt; " + results.rows.item(i).name +"&lt;font&gt;&lt;/strong&gt;" + "&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font size = 1&gt;Date:" +results.rows.item(i).date +  "&lt;font&gt;&lt;/a&gt; ";   //I would like to show the details of the selected item in edit.html page.
    }

        $("#ReceiptsList").html(s);
}
</code></pre>
