My code does not work - im trying to see if the first letter is a capital :: JavaScript
<p>Im trying to see if the first letter of a string is a Capital.</p>

<p>Here is my HTML</p>

<pre><code>Test:&lt;br/&gt;
&lt;input type="text" name="Testr" size="25" /&gt;
</code></pre>

<p>And here is my JavaScript</p>

<pre><code>var namer=document.logOn.Testr.value;

if(/[^A]/.test(namer)){             
     alert("CHOMP CHOMP");
        return false;
}
</code></pre>

<p>I dont understand why my code doesnt work?</p>

<p>What do you guys think?</p>
