Return to Snippet

Revision: 37677
at December 15, 2010 04:03 by yhs


Initial Code
$("input[type='password'], input[type='text'], textarea").each(function(){
	$(this).one('focus',function(){
		$(this).val("");
	});
});

Initial URL


Initial Description


Initial Title
Simply clear the default input value on first :focus

Initial Tags
form

Initial Language
jQuery