Easy way to remove ghost text default value on submit
<p>The script code below makes ghost text </p>

<pre><code>$('.ghost-text').each(function(){
    var d = $(this).val();
    $(this).focus(function(){
        if ($(this).val() == d){
            $(this).val('').removeClass('ghost-text');
        }
    });
    $(this).blur(function(){
        if ($(this).val() == ''){
            $(this).val(d).addClass('ghost-text');
        }
    });
});
</code></pre>

<p>But on submit it passes that default ghost value. How to delete it on submit?</p>
