Re-setting field value with JQuery
<p>I have the following code:</p>

<pre><code>$('#name1').focus(function() {
    if ($(this).val() == 'start value') {
        console.log($(this).val()); // this prints "start value"
        $(this).val() == ''
    }
</code></pre>

<p>What I am trying to do is when a user focuses on the text input <code>#name1</code>, the field's value will disappear. However, the above does nothing, and the text value stays the same. Why is this occurring and what do I need to change?</p>
