How to be unchecked in checkbox in clone().insertAfter jqery?
<p>I want to copy the whole rows ,but checkbox unchecked when clicking add button.(in my code, 
if I check FOC checkbox and when I click add,it copy rows with Foc check).</p>

<p>In asp.net, </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="addRow(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 readonly" 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 Javascript,</p>

<pre><code>function addRow(name, selected){
  $(name).parent().parent().next('tr').find('.classFOC:checked').attr('checked', false); 
  $(name).parent().parent().clone().insertAfter($(name).parent().parent());

  //adding remove function to next siblings
  $(name).parent().parent().next('tr').find(".delete").attr('onclick', 'removeRow(this)');

  selected = $(name).parent().parent().find(".mcdropdown input:hidden").val();

  //list of textbox or inputs elements to be empties
  $(name).parent().parent().next('tr').find("input").val('');
  $(name).parent().parent().next('tr').find(".classCurrency").text('');
  $(name).parent().parent().next('tr').find(".classCurrency2").text('');

  $(".promotion-container").css("height", $("#left").innerHeight() - 42 + "px");


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