Javascript empty value control
<p>The if(usern == "") part of code is working. But when i pushed space button on keyboard for "input", it goes to else statement. How can i fix this?</p>

<pre><code>usern = $("input").val();

if(usern == "")
        //don't do 
else 
        //do something
</code></pre>
