Swapping input field placeholder text with jQuery
<p>I try as following jquery code, but it doesn't work true, how can fix it?</p>

<p><strong>Demo:</strong> <a href="http://jsfiddle.net/pjqcf/" rel="nofollow">http://jsfiddle.net/pjqcf/</a></p>

<pre><code>&lt;input type="text" value="Some descriptive text..."&gt;​

$('input[type=text]').focus(function () {
    if ($(this).val() == $(this).attr('defaultValue')) {
        $(this).val('');
    }
});
$('input[type=text]').blur(function () {
    if ($(this).val() == '') {
        $(this).val($(this).attr('defaultValue'));
    }
});​
</code></pre>
