Converting Some Code to jQuery
<p>Hey guys, I have some code that I found that I would rather use as jQuery instead of direct JavaScript. Hopefully you guys can help me convert it:</p>

<pre><code>var sub = document.getElementById('submit');
sub.parentNode.removeChild(sub);
document.getElementById('btn-area').appendChild(sub);
document.getElementById('submit').tabIndex = 6;
if ( typeof _some_var != 'undefined') {
    document.getElementById('some-textarea').value = _some_var;
}
document.getElementById('something').style.direction = 'ltr';
</code></pre>

<p>The reason I want to do this is because FireFox is telling me that <code>sub</code> is null when it is used on the second line. This happens because that code runs before the the <code>submit</code> button appears. So naturally I would like to use jQuery for the purpose of running the code after everything is ready. Yes, I know it's possible to do that in direct JavaScript as well, but I would rather have jQuery either way.</p>

<p>Thanks!</p>
