Finding value from a hidden field
<p>I am adding value in my webpage as hidden like this:</p>

<pre><code>cell.append('&lt;input type="hidden" class="isTestValue" value="' + bill.IsTestBill + '"&gt;');
</code></pre>

<p>Now I wrote to get this value:</p>

<pre><code>function getIsTestId(billIndex) {
    var selectedRow = getSelectedRow(billIndex);
    var lastCol = jQuery(selectedRow).find('TD:last');
    return (lastCol.find('INPUT:hidden.isTestValue).val());
}
</code></pre>

<p>However, in my function when I am calling this getIsTestId: </p>

<pre><code> var testId= getIsTestId(billIndex);
</code></pre>

<p>In testId the value is undefined. What am I doing wrong here?</p>

<p>PS: How should I check my isTestValue in immediate window?</p>
