Note that there are some explanatory texts on larger screens.

plurals
  1. POSubtract values in two textboxes in listview row
    primarykey
    data
    text
    <p>Sorry about that... I am using an ASP.NET listview that can have one or many rows. Here is the HTML that is generated for the listview itself. I want to be able to subtract the two INPUTS named txtAmount and txtPayAmt from one another so that I can message the customer if they are getting ready to pay on an account that already has a zero balance.</p> <p>Thanks for any help you can provide.</p> <pre><code>&lt;DIV style="Z-INDEX: 590" id=divBTUAccts&gt; &lt;TABLE style="BORDER-BOTTOM: #cc9966 1px solid; BORDER-LEFT: #cc9966 1px solid; BACKGROUND-COLOR: white; WIDTH: 100%; FONT-FAMILY: Arial; FONT-SIZE: 9pt; BORDER-TOP: #cc9966 1px solid; BORDER-RIGHT: #cc9966 1px solid" cellSpacing=0 cellPadding=4&gt; &lt;TBODY&gt; &lt;TR class=AccountTableHeader&gt; &lt;TH&gt;&amp;nbsp; &lt;/TH&gt; &lt;TH&gt;Account / Address &lt;/TH&gt; &lt;TH&gt;Due Date &lt;/TH&gt; &lt;TH&gt;Payment Amount &lt;/TH&gt; &lt;TH&gt;Recurring? &lt;/TH&gt; &lt;/TR&gt; &lt;TR class=MainRowColor&gt; &lt;TD&gt;&lt;INPUT id=ctl00_ctl00_ContentPlaceHolderBody_BTUWeb_ContentPlaceHolder_CenterColumn_ListView_Accounts_ctrl0_chkAccount CHECKED type=checkbox name=ctl00$ctl00$ContentPlaceHolderBody_BTUWeb$ContentPlaceHolder_CenterColumn$ListView_Accounts$ctrl0$chkAccount&gt; &lt;/TD&gt; &lt;TD&gt;&lt;SPAN id=ctl00_ctl00_ContentPlaceHolderBody_BTUWeb_ContentPlaceHolder_CenterColumn_ListView_Accounts_ctrl0_lblAcct&gt;2116280&lt;/SPAN&gt;&amp;nbsp;-&amp;nbsp; &lt;SPAN id=ctl00_ctl00_ContentPlaceHolderBody_BTUWeb_ContentPlaceHolder_CenterColumn_ListView_Accounts_ctrl0_lblAddr&gt;16177 WOODLAKE DR&lt;/SPAN&gt; &lt;/TD&gt; &lt;TD style="TEXT-ALIGN: center"&gt;&lt;SPAN id=ctl00_ctl00_ContentPlaceHolderBody_BTUWeb_ContentPlaceHolder_CenterColumn_ListView_Accounts_ctrl0_lblDueDt&gt;05/25/2011&lt;/SPAN&gt; &lt;/TD&gt; &lt;TD style="TEXT-ALIGN: right"&gt;&lt;SPAN id=ctl00_ctl00_ContentPlaceHolderBody_BTUWeb_ContentPlaceHolder_CenterColumn_ListView_Accounts_ctrl0_lblDollar&gt;$&lt;/SPAN&gt; &lt;INPUT style="TEXT-ALIGN: right" id=ctl00_ctl00_ContentPlaceHolderBody_BTUWeb_ContentPlaceHolder_CenterColumn_ListView_Accounts_ctrl0_txtAmount value=10.00 type=text name=ctl00$ctl00$ContentPlaceHolderBody_BTUWeb$ContentPlaceHolder_CenterColumn$ListView_Accounts$ctrl0$txtAmount {95919BE0-C436-4eab-8083-096E94826667}="10.00"&gt; &lt;/TD&gt; &lt;TD&gt;&lt;/TD&gt; &lt;TD style="DISPLAY: none"&gt;&lt;INPUT style="DISPLAY: none" id=ctl00_ctl00_ContentPlaceHolderBody_BTUWeb_ContentPlaceHolder_CenterColumn_ListView_Accounts_ctrl0_txtAmtDue value=0 type=text name=ctl00$ctl00$ContentPlaceHolderBody_BTUWeb$ContentPlaceHolder_CenterColumn$ListView_Accounts$ctrl0$txtAmtDue {95919BE0-C436-4eab-8083-096E94826667}="0"&gt; &lt;/TD&gt; &lt;/TR&gt; &lt;TR class=AccountTableFooter&gt; &lt;TD&gt;&amp;nbsp; &lt;/TD&gt; &lt;TD&gt;&amp;nbsp; &lt;/TD&gt; &lt;TD&gt;&amp;nbsp; &lt;/TD&gt; &lt;TD style="TEXT-ALIGN: right"&gt;&amp;nbsp; &lt;/TD&gt; &lt;TD&gt;&amp;nbsp; &lt;/TD&gt; &lt;/TR&gt;&lt;!--End of ListView_Accounts--&gt; &lt;TR class=AccountTablePager align=middle&gt; &lt;TD colSpan=5&gt;&lt;SPAN id=ctl00_ctl00_ContentPlaceHolderBody_BTUWeb_ContentPlaceHolder_CenterColumn_DataPager1&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&amp;nbsp;&lt;/SPAN&gt; &lt;/TD&gt; &lt;/TR&gt; &lt;/TBODY&gt; &lt;/TABLE&gt; &lt;/DIV&gt; </code></pre> <p>I am new to using jQuery and so I throw myself on the mercy of you developers out there for help on this problem. I need to iterate through one or many rows in a listview all the while subtracting the amount in one textbox in the row from another. I have been trying to figure this out for a day now with no luck. Please help!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload