Revision: 50335
Updated Code
at August 18, 2011 04:07 by claudiowebdesign
Updated Code
var field = $('input'); field.focus(function(){ if(field.val()==='Your Name') field.val('') }).blur(function(){ if(field.val()==='') field.val('Your Name') })
Revision: 50334
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at August 18, 2011 04:05 by claudiowebdesign
Initial Code
$('input').focus(function(){ if($(this).val()==='Your Name') $(this).val('') }).blur(function(){ if($(this).val()==='') $(this).val('Your Name') })
Initial URL
Initial Description
Initial Title
Lightweight \"label inside input field\" snippet
Initial Tags
jquery
Initial Language
jQuery