My javascript to jQuery translation has a bug
<p>My guess is that this javascript just finds the div called <code>divid</code> and then uses it with the <code>sendit</code> function.</p>

<pre><code>var somevalue = 19; 
if (navigator.appName.indexOf("Microsoft") != -1) {
    thediv = window["divid"]; 
} else { 
    thediv = document["divid"];
}
thediv.sendit(somevalue);
</code></pre>

<p>I would imagine in jQuery it would look something as simple as this:</p>

<pre><code>var somevalue = 19;
$('divid').sendit(somevalue);
</code></pre>

<p>But it's not working!! What could I be missing?</p>

<p>I should say that it's in the middle of other javascript code, could that be a problem? </p>
