jquery get textbox value if not null
<p>I have a checkbox for creating a user</p>

<pre><code>&lt;input type="checkbox" id="chkCreateNewUser" name="chkCreateNewUser"/&gt;&lt;label for="chkCreateNewUser"&gt;Create New User&lt;/label&gt;
</code></pre>

<p>then i have this jquery </p>

<pre><code>$("Input").click(function(){
    if($('#chkCreateNewUser').attr('checked')){
  $('#Firstname').val("");
}
</code></pre>

<p>when i type in the textbox and click the next textbox, the value i typed disappears. how do i make it when if the value of the textbox is not empty, the value typed stays?</p>

<p>I tried assigning it to avariable and displaying that variable but it just shows "[Object, Object]". I know theres a simple solution thanks</p>
