$(\".box_yazi2\").each(function () {
var default_value = this.value;
$(this).css(\'color\', \'#555\'); // this could be in the style sheet instead
$(this
I'm using the next code:
//clear the focused inputs
$('input[type="text"]').focus( function(){
if( $(this).attr('value') == $(this).attr('defaultValue') ){
$(this).attr('value', '');
};
} );
$('input[type="text"]').blur( function(){
if( $(this).attr('value') == '' ){
$(this).attr('value', $(this).attr('defaultValue') );
};
} );