how loop through return ajax data using jquery?
<p>My test.php file contains the following information that is sends list of information.</p>

<pre><code>       while($row = mysqli_fetch_array($testResults))
       {
           echo "&lt;li&gt;" . $row['test'] . "&lt;/li&gt;";
       }
</code></pre>

<p>Output:</p>

<pre><code>       &lt;li&gt; test A &lt;/li&gt;
       &lt;li&gt; test B &lt;/li&gt;
       &lt;li&gt; test C &lt;/li&gt;
       &lt;li&gt; test D &lt;/li&gt;
       &lt;li&gt; test E &lt;/li&gt;
       &lt;li&gt; test F &lt;/li&gt;
       &lt;li&gt; test G &lt;/li&gt;
       &lt;li&gt; test H &lt;/li&gt;
</code></pre>

<p>I need the ajax code to loop through each list coming the php echo command</p>

<pre><code>        $.post("test.php", function(data)
        {
            $.each(data, function(key, value)
            {
                  alert(value);
            });
        });
</code></pre>

<p>The above code is display elements tag symbols and name and text node but I only want it to display only the textnode (test A).</p>
