How do I select a line and put it into a variable (in jQuery)
<p>In my code I show a 10 lines with a new salesorder on each line.
When the user click on one of the lines (= one of the sales order), I want to</p>

<ol>
<li>take the salesorder (= get the selected value),</li>
<li>get more details about the sales order (=need to make select into my backend)</li>
<li>show the new details on a new page/view</li>
</ol>

<p>My code looks like this:</p>

<pre><code>    &lt;div data-role="content"&gt;
    &lt;ul data-role="listview" data-inset="true" data-theme="c" data-dividertheme="a"&gt;
    &lt;li data-role="list-divider"&gt;Your Fav&lt;/li&gt;
    &lt;/ul&gt;
    &lt;/div&gt;
    &lt;ul data-role="listview" data-inset="true" data-theme="d" data-dividertheme="c"&gt;
    &lt;%
     loop at gt_fav_cust1 assigning &lt;ls_fav_cust&gt;.
    select single name1 into &lt;ls_fav_cust&gt;-custname
    from kna1 where kunnr = &lt;ls_fav_cust&gt;-kunnr.
    %&gt;
    &lt;li&gt;&lt;a href="#customer" data-transition="flip" data-rel="dialog"&gt;
    &lt;%= &lt;ls_fav_cust&gt;-kunnr %&gt;
    &lt;%= &lt;ls_fav_cust&gt;-custname %&gt;
    &lt;/a&gt;&lt;/li&gt;
    &lt;%
    endloop.
    %&gt;
    &lt;/ul&gt;
</code></pre>

<p>Can anybody guide me in the right direction?</p>

<p>Thanks,</p>

<p>Aikon</p>
