$(function() { $('#Button1').click(function() { var hfAnswers = $('#<%=HFeducationdetails.ClientID %>'); var answers = parseInt(hfAnswers.val()) + 1; alert(answers); hfAnswers.val(answers); $('.sourceEdu:first').clone().attr({ name: "ans_clone_" + answers, id: "ans_clone_" + answers }).appendTo('.designationEdu'); //$('.sourceEdu:first').clone().attr('id', 'choices_' + $(this).index()).insertAfter('.designationEdu'); }) })
<asp:TextBox ID="txtfrom3_1" runat="server" class="form-control" placeholder="From"></asp:TextBox> <asp:CalendarExtender ID="CalendarExtender4" runat="server" TargetControlID="txtfrom3_1" Format="dd/MM/yyyy" PopupPosition="TopLeft"></asp:CalendarExtender>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)