If on .focusout form contains no value, revert to original value?
<p>I'm trying to get my <code>&lt;input.../&gt;</code> fields to go blank on focus, and if on focus out they're still blank, revert them to their original values.</p>

<p>I would've thought this would work, but apparently not:</p>

<pre><code>$('input').focus( function() {
    var init_value = $(this).val();
    $(this).val('');
});

$('input').focusout( function() {
    var new_value = $(this).val();

    if(new_value == "") {
        $(this).val(init_value);
    }
});
</code></pre>

<p>Any alterations/advice to get it working would be most appreciated ;)!</p>
