Note that there are some explanatory texts on larger screens.

plurals
  1. POasp.net jquery add row (clone row) with text box and drop down dynamically
    primarykey
    data
    text
    <p>When the user click's the add box attribute the row(i.e the row with 2 dropdown and textbox needs to be added) row with above needs to be dynamically created using jquery(so that there is no post back). User will be allowed to add as many attirbutes as he wants and when they click the check box that row needs to be deleted. How this can be achieved by jquery.</p> <pre><code> &lt;asp:Panel ID="pnl_BoxAttr" runat="server"&gt; &lt;table&gt; &lt;tr&gt; &lt;th&gt; Name &lt;/th&gt; &lt;th&gt; Comparision &lt;/th&gt; &lt;th&gt; Value &lt;/th&gt; &lt;th&gt; Delete &lt;/th&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; &lt;asp:DropDownList ID="ddl_BoxName" runat="server"&gt; &lt;asp:ListItem Value="attr1" Selected="True"&gt;&lt;/asp:ListItem&gt; &lt;asp:ListItem Value="attr2"&gt;&lt;/asp:ListItem&gt; &lt;asp:ListItem Value="attr3"&gt;&lt;/asp:ListItem&gt; &lt;/asp:DropDownList&gt; &lt;/td&gt; &lt;td&gt; &lt;asp:DropDownList ID="ddl_BoxComparision" runat="server"&gt; &lt;asp:ListItem Value="=" Selected="true"&gt;&lt;/asp:ListItem&gt; &lt;asp:ListItem Value="&gt;"&gt;&lt;/asp:ListItem&gt; &lt;asp:ListItem Value="&lt;"&gt;&lt;/asp:ListItem&gt; &lt;asp:ListItem Value="Like"&gt;&lt;/asp:ListItem&gt; &lt;asp:ListItem Value="!="&gt;&lt;/asp:ListItem&gt; &lt;/asp:DropDownList&gt; &lt;/td&gt; &lt;td&gt; &lt;asp:TextBox ID="btn_boxval" runat="server" &gt;&lt;/asp:TextBox&gt; &lt;/td&gt; &lt;td&gt; &lt;asp:CheckBox ID="chk_DeleteBoxRow" runat="server" /&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td colspan="3"&gt; &lt;asp:Button ID="btn_AddAttr" Text="Add Box Attribute" runat="server"/&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/asp:Panel&gt; </code></pre>
    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