Iam having a division in which I have a fileupload control and textbox and save and cancel buttons once I click on the save button data will be saved to db now addanother button will be appeared to add same div to existing how can I do it?
Please refer this code
HTML:
<html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"> </script> <title></title> <script type="text/javascript"> $(document).ready(function () { $("[id*=btnAddDiv]").click(function () { $txthtml = "<div id=\"dvDynamicDiv\">Added dynamically</div>"; $("[id*=Div1]").append($txthtml); return false; }); }); </script> </head> <body> <form id="form1" runat="server"> <div id="Div1"> </div> <button id="btnAddDiv">Add Div Tag</button> </form> </body> </html>
Demo
Thank You.
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.