How to retrieve td input textbox value from table with jqery?
<p>I want to get value of 
   <code>&lt;asp:TextBox ID="txtTotalAmount" CssClass="classTotalAmount number" Columns="8" runat="server"  &gt;&lt;/asp:TextBox&gt;</code> from table.</p>

<p>In aspx file,</p>

<pre><code>&lt;table id="tblitems" cellpadding="0" cellspacing="0" border="0" class="additemtb"&gt;
                        &lt;tbody&gt;
                            &lt;tr&gt;
                                &lt;th&gt;
                                    Item Name
                                &lt;/th&gt;
                                &lt;th&gt;
                                    Item Code
                                &lt;/th&gt;
                                &lt;th&gt;
                                    Unit Price
                                &lt;/th&gt;
                                &lt;th&gt;
                                    Qty
                                &lt;/th&gt;
                                &lt;th&gt;
                                    UOM
                                &lt;/th&gt;
                                &lt;th&gt;
                                    Amount
                                &lt;/th&gt;
                                &lt;th&gt;
                                    Minimal Order Qty
                                &lt;/th&gt;
                                &lt;th&gt;
                                    FOC
                                &lt;/th&gt;
                                &lt;th&gt;&lt;/th&gt;
                            &lt;/tr&gt;
                            &lt;tr&gt;
                                &lt;td style="width:190px;"&gt;

                                &lt;/td&gt;
                                &lt;td&gt;
                                    &lt;asp:TextBox ID="TxtBox_ItemCode" CssClass="classItemCode readonly" Columns="8" runat="server" &gt;&lt;/asp:TextBox&gt;
                                &lt;/td&gt;
                                &lt;td style="white-space:nowrap"&gt;
                                    &lt;input type="text" id="txtunitprice" name="txtunitprice" class="classUnitPrice number readonly" style="width:50px;" /&gt;
                                    &lt;input type="hidden" id="hidunitprice" name="hidunitprice" class="classUnitPrice2" /&gt;
                                    &lt;asp:Label ID="lblCurrency" runat="server" CssClass="classCurrency" /&gt;
                                    &lt;input type="hidden" id="hidcurrencyid" name="hidcurrencyid" class="classCurrencyID" /&gt;
                                &lt;/td&gt;
                                &lt;td&gt;
                                    &lt;input type="text" id="txtqty" name="txtqty" class="classQty number decimaltextbox" style="width:50px" onkeyup="calculateAmount(this);" onblur="minamt(this);calculateAmount(this);" /&gt;
                                &lt;/td&gt;
                                &lt;td&gt;
                                    &lt;asp:TextBox ID="TxtBox_UOM" CssClass="classUOM readonly" Columns="5" runat="server" &gt;&lt;/asp:TextBox&gt;
                                &lt;/td&gt;
                                &lt;td style="white-space:nowrap"&gt;
                                    &lt;asp:TextBox ID="TxtBox_Amount" CssClass="classAmount number readonly" Columns="8" runat="server"&gt;&lt;/asp:TextBox&gt;
                                    &lt;asp:Label ID="Label1" runat="server" CssClass="classCurrency2" /&gt;
                                &lt;/td&gt;
                                &lt;td&gt;
                                    &lt;input type="text" id="txtminorderqty" name="txtminorderqty" class="minorderqty number readonly" style="width:60px;background:none;border:none;font-weight:bold;color:Red;" /&gt;
                                &lt;/td&gt;
                                &lt;td style="width:1px"&gt;
                                    &lt;input type="checkbox" id="chkFOC" name="chkFOC" class="classFOC btnborder" onclick="calculateFOC(this);" /&gt;
                                    &lt;input type="hidden" name="hidFOC" id="hidFOC" class="classFOC2" value="false" /&gt;
                                &lt;/td&gt;
                                &lt;td style="width:90px;"&gt;
                                    &lt;a href="javascript:void(0)" class="copy" onclick="copyRow(this);"&gt;Copy&lt;/a&gt;
                                    &lt;a href="javascript:void(0)" class="delete" onclick="removeRow(this);"&gt;delete&lt;/a&gt;
                                    &lt;a href="javascript:void(0)" class="add" onclick="addRows(this)"&gt;add&lt;/a&gt;
                                &lt;/td&gt;
                            &lt;/tr&gt;
                            &lt;tr&gt;
                                &lt;td colspan="4" class="darkgray"&gt;
                                    &lt;span class="classOverBudget chinese" &gt;Purchase Order Amount is over limited budget.&lt;/span&gt;
                                &lt;/td&gt;
                                &lt;td class="darkgray" style="text-align:right; font-weight:bold; white-space:nowrap"&gt;Total Amount&lt;/td&gt;
                                &lt;td class="darkgray" &gt;
                                    &lt;asp:TextBox ID="txtTotalAmount" CssClass="classTotalAmount number" Columns="8" runat="server" &gt;&lt;/asp:TextBox&gt;
                                    &lt;asp:Label ID="Label2" runat="server" CssClass="classCurrency3" /&gt;
                                &lt;/td&gt;
                                &lt;td colspan="3" class="darkgray"&gt;&amp;nbsp;&lt;/td&gt;
                            &lt;/tr&gt;
                        &lt;/tbody&gt;
                    &lt;/table&gt;
</code></pre>

<p>In Jqery,   </p>

<pre><code>function removeRow(name) {

        if ($("#tblitems tr").length &lt;= 3) return;
        $(name).parent().parent().remove();
        $(".promotion-container").css("height", $("#left").innerHeight() - 42 + "px"); 



         var total= $(name).parent().parent().siblings().find(".classTotalAmount input:textbox").val();        

        alert(total); // only show undefined, not give value

        $(name).parent().parent().find(".classAmount").each(function() {
            total -= parseFloat($(this).val());     

        });    

        $(name).parent().parent().find(".classTotalAmount").val(total.toFixed(2)); 

        FormActionControl();
    }
</code></pre>
