Return to Snippet

Revision: 52352
at October 20, 2011 22:46 by jesudasjj


Initial Code
$(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;
}
}
);
});

Initial URL
http://buildinternet.com/2009/01/changing-form-input-styles-on-focus-with-jquery/

Initial Description

                                

Initial Title
on focus remove input value

Initial Tags

                                

Initial Language
jQuery