how to get the value to td inside list in javascript
<p>I have a listview in asp.net it appears in html like this </p>

<pre><code>&lt;li id="l3" class="add" onclick="hilite()" style=""&gt;
   &lt;table id="tbl" style="width: 100%;"&gt;
       &lt;tbody&gt;
          &lt;tr style="width: 100%;"&gt;
              &lt;td class="border2" style="width: 50%;"&gt; 1011 &lt;/td&gt;
              &lt;td class="border2" style="width: 50%;"&gt; Name 3 &lt;/td&gt;
           &lt;/tr&gt;
       &lt;/tbody&gt;
    &lt;/table&gt;
&lt;/li&gt;
</code></pre>

<p>now i want to get all the table value via javascript on button click  li contains table inside table tr and td presented i want td value of each list for sorting. 
and also i tried like this</p>

<pre><code>function sortUnorderedList(ul, sortDescending) {
        if (typeof ul == "string")
            ul = document.getElementById(ul);
        var lis = ul.getElementsByTagName("li");
        var vals = [];
        for (var i = 0, l = lis.length; i &lt; l; i++)
            vals.push(lis[i].innerHTML);
        vals.sort();
        if (sortDescending)
            vals.reverse();

        var contentArray = new Array();
        for (var i = 0, l = lis.length; i &lt; l; i++) {
            lis[i].innerHTML = vals[i];

            alert(lis[i].innerHTML);

            var x = lis[i].innerHTML.getElementById('lsttable1').rows[0].cells;
            alert(x[0].innerHTML);
        }
 }
</code></pre>

<p>in <code>alert(x[0].innerHTML);</code> i got table then how should i take the td value of each li</p>
