have a single look on code based on jquery,the code is running fine but the problem is when ever i click on any radio button to create div it created div but overlap each other ,i added blank row or <BR> but useless any help
<body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<input id="Radio1" type="radio" value="1" name="group1" />1<br />
<input id="Radio2" type="radio" value="2" name="group1" />2<br />
<input id="Radio3" type="radio" value="3" name="group1" />3<br />
<input id="Radio4" type="radio" value="4" name="group1" />4<br />
<input id="Radio5" type="radio" value="5" name="group1" />5<br />
<input id="Radio6" type="radio" value="6" name="group1" />6<br />
<input id="Radio7" type="radio" value="7" name="group1" />7<br />
<input id="btn1" type="button" runat=server value="create div" onclick="createDiv();" />
<asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder>
</div>
</form>
</body>
<script type="text/javascript">
$(document).ready(function() {
$('input[name=group1]').change(function() {
$('div.dynamicDiv').remove();
for (var j = 0; j < $('input[name=group1]:checked').val(); j++) {
var d = $('<div />', { "class": "dynamicDiv", id: 'div' + j }).appendTo('body');
var t = $('<table width="100%" CellSpacing=0 CellPadding=0 Border=0><tr><td Width="20%" Align = "Left">Name</td><td Width="10%" Align="Left"><SELECT name="SAL"> <OPTION SELECTED value="MR">MR<OPTION value="MRs">MRS<OPTION value="MRs">Ms </SELECT> </td><td Width="70%" Align ="Left"><input type="text" name="txt_name"+j/></td></tr><tr><td width="20%" align="left">Telephone</td><td align="left" Width="10%"></td><td align="left" width="70%"><input type="text" name="txt_tel"+j/></td></tr><tr><td width="20%" align="left">Email</td><td align="left" Width="10%"></td><td align="left" width="70%"><input type="text" name="txt_email"+j/></td></tr></table>').appendTo(d);
$('<br/>').appendTo(t);
}
});
});
</script>