I have a div in the following format.
1. How Can I add this to an existing div. Do I create a seperate html file and then add it using jquery? or Should I append this into a var and then append it to the div. Pls suggest a way to 1 append and create the div and then append it within another div(whose id i know)
<div>
<table>
<tr><td></td><td></td><td></td>
</tr>
</table>
<table>
<tr><td></td><td></td>
</tr>
<tr><td></td><td></td><td></td><td></td>
</tr>
</table>
<table>
<tr><td></td>
</tr>
</table>
</div>
You can try something like this (using jQuery):
HTML:
JS:
You can view the example here: http://jsfiddle.net/3hm6N/1/
Of course, you can use the approach that Greg Pettit said. Another thing, I didn’t saw it, but your table is missformated since the tags should have
<td>s or<th>s inside.