How do I put a value in span element within my <td>
<p>I need to put the value from JQuery to span in the following:</p>

<pre><code>&lt;td&gt;Cholesterol&lt;/td&gt;
&lt;td&gt;
 &lt;input type="text" name="txt_cholesterol" id="txt_cholesterol" class="info"/&gt;
 &lt;span class="result"&gt;&lt;/span&gt;
&lt;/td&gt;
&lt;td&gt;
 &lt;span class="low"&gt;116&lt;/span&gt;-&lt;span class="high"&gt;254&lt;/span&gt;
&lt;/td&gt;
</code></pre>

<p>Jquery not working:</p>

<pre><code>$(".info").keyup(function(){

   var a = $(this).val(); 
   var low = $(this).closest('td').next().find('.low').html(); 
   var high =$(this).closest('td').next().find('.high').html(); 

    if (a &lt; parseInt(low))
    {



    $(this).closest('span').html('L');
    }
    if (a &gt; parseInt(high))
    {
        $(this).closest('td').next().find('.result').html('H'); 
    }

});
</code></pre>
