Search Area

by Joe Saad

HTML

<input type="text" value="Search this" />

JavaScript

$('input').focus(function() {
    if ($(this).val() === "Search this") {
        $(this).val("");
    }
});
$('input').blur(function() {
    if ($(this).val() === "") {
        $(this).val("Search this");
    }
});