/* IE* placeholder fix */
var IE='\v'=='v'
if (IE) {
$('[placeholder]').focus(function() {
var input = $(this);
if (input.val() == input.attr('placeholder')) {
input.val('');
input.removeClass('placeholder');
}
}).blur(function() {
var input = $(this);
if (input.val() == '' || input.val() == input.attr('placeholder')) {
input.addClass('placeholder');
input.val(input.attr('placeholder'));
}
}).blur();
$('[placeholder]').parents('form').submit(function() {
$(this).find('[placeholder]').each(function() {
var input = $(this);
if (input.val() == input.attr('placeholder')) {
input.val('');
}
})
});
}
<fieldset>
<label for="search">search</label>
<input type="text" name="search" value="search" onfocus="if(this.value == 'search'){this.value = '';}" onblur="if(this.value == ''){this.value = 'search';}">
</fieldset>