Note that there are some explanatory texts on larger screens.

plurals
  1. POEmpty textbox using Jquery
    primarykey
    data
    text
    <p>I'm able to hide the 'tr' when 'Remove' is clicked. with the following code.</p> <pre><code>$("a#minus").bind("click", function(e){ $(this).closest('tr').hide(); }); </code></pre> <p>But I also want to clear the content of the 2 text boxes (id of the textbox's are dynamic [frm_Expense_expensesVO_<em>__strAmount and frm_Expense_expensesVO_</em>__memo] here '*' goes from 1 to infinity). Please help. Thanks</p> <pre><code>&lt;table&gt; &lt;tr&gt; &lt;td&gt; Amount &lt;/td&gt; &lt;td&gt; Memo &lt;/td&gt; &lt;td&gt; &amp;nbsp; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; &lt;input type="text" name="expensesVO[0].strAmount" value="2.30" id="frm_Expense_expensesVO_0__strAmount"/&gt; &lt;/td&gt; &lt;td&gt; &lt;input type="text" name="expensesVO[0].memo" value="Five" id="frm_Expense_expensesVO_0__memo"/&gt; &lt;/td&gt; &lt;td&gt; &lt;a id="minus" href="#"&gt;Remove&lt;/a&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; &lt;input type="text" name="expensesVO[1].strAmount" value="3.45" id="frm_Expense_expensesVO_1__strAmount"/&gt; &lt;/td&gt; &lt;td&gt; &lt;input type="text" name="expensesVO[1].memo" value="Six" id="frm_Expense_expensesVO_1__memo"/&gt; &lt;/td&gt; &lt;td&gt; &lt;a id="minus" href="#"&gt;Remove&lt;/a&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; &lt;input type="text" name="expensesVO[2].strAmount" value="" id="frm_Expense_expensesVO_2__strAmount"/&gt; &lt;/td&gt; &lt;td&gt; &lt;input type="text" name="expensesVO[2].memo" value="" id="frm_Expense_expensesVO_2__memo"/&gt; &lt;/td&gt; &lt;td&gt; &lt;input type="submit" id="frm_Expense_ExpenseAdd_plus" name="action:ExpenseAdd_plus" value="+"/&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; &lt;label id="frm_Expense_transactionVO_amount"&gt;5.75&lt;/label&gt; &lt;/td&gt; &lt;td align="right"&gt; &lt;input type="submit" id="frm_Expense_Cancel" name="action:ExpenseAdd_cancel" value="Cancel"/&gt; &lt;/td&gt; &lt;td align="left"&gt; &lt;input type="submit" id="frm_Expense_Save" name="action:ExpenseAdd_save" value="Save"/&gt; &lt;/td&gt; &lt;/tr&gt; </code></pre> <p></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.
    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