How can a javascript variable that I just displayed immediately error out as undefined?
<p>I have some simple javascript code that looks like this:</p>

<pre><code>var divLink = $(this).attr("href");
alert(divLink);
if ($(divlink).is(":visible")) $(divLink).hide("blind", { direction: "vertical" }, 1000);
</code></pre>

<p>It throws this error on line 3:</p>

<pre><code>Uncaught ReferenceError: divlink is not defined
</code></pre>

<p>I put in line two just to see what was in the variable divLink. It returns:</p>

<pre><code>The page at mysite.com says:

#categories_settings
</code></pre>

<p>Once I click "OK" on the dialog box, it throws the error. How can this be?</p>
