Hi i want to add page depend on button click.
and my single page means a single Div tag.
if i want to add the page(div) depend on button click
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <script type = "text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> <script type="text/javascript"> $("#btnAdd").live("click", function () { var dv = $("<div/>").html("Hello"); $("#container").append(dv); }); </script> </head> <body> <form id="form1" runat = "server"> <div id = "container"></div> <input type = "button" id = "btnAdd" value = "Add" /> </form> </body> </html>
Demo
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.