On focus remove input value

[javascript]
$(document).ready(function() {
$(‘.rmv-dft-val’).click(
function() {
if (this.value == this.defaultValue) {
this.value = ”;
}
}
);
$(‘.rmv-dft-val’).blur(
function() {
if (this.value == ”) {
this.value = this.defaultValue;
}
}
);
});
[/javascript]

Leave a Reply