If <td> tag is empty (no text)... run jquery script for php list page
<p>I have a php page that generates a list of stock items and I want to determine if the table td for the stock items are empty so that I can run a jquery script that states that we either have the stock item or not.</p>

<pre><code>jQuery(document).ready(function() {
    if ($("#paperId:empty")) {
        $('#tablebox').append("&lt;h2 class=\"floatclear\"&gt;There is stock that matches your search parameters.&lt;/h2&gt;");
    } else {
        $("table").hide();
        $('#papernav').hide();
        $('#tablebox').append("&lt;h2 class=\"floatclear\"&gt;No Stock is currently available.&lt;/h2&gt;");
    }
})
</code></pre>

<p>I think that I should be running this with every submit but don't know how?</p>
