I have a HTML table in a page <table id="options_table"></table>
I want to automatically on page load:
- DELETE the HTML TABLE TAG from one location in a webpage
- Paste it at another location below this SPAN tag
<span><a href="test">test</a><br /></span>
Is this possible in Jquery?
You just need to append it. First, give the span an ID:
Then use the following jQuery snippet:
Here is a simple example: http://jsfiddle.net/vAewz/
jQuery will automatically move the node. No need to call
.detach().