How can I change this:
<div class="container">
<div class="span-19">
<div id="content">
<!-- variable amount of content -->
<form class="move-me">
<!-- form -->
</form>
</div>
</div>
</div>
Into this:
<form class="move-me">
<div class="container">
<div class="span-19">
<div id="content">
<!-- variable amount of content -->
<!-- form data -->
</div>
</div>
</div>
</form>
Using jQuery? Note, I specifically want to move only the <form>
start and end tags, not the children elements of that form. Preferably I want some jQuery.fn
so that I can do this:
$('.move-me').changeNesting('.container');
Thanks in advance!
form
-related attributes ofinput
elements in your project. Here's more about it. – Chirlinform
attribute bypassed all of that nonsense. The solution is for an admin system with a closed user group locked to webkit browsers, to it's perfect for me. Thanks!!!! :) – Clayclaybank