October 2012

Focus blur field fillers

Do you need a fast easy way to add default text in your form input text fields? Here's a quick solution with jQuery. First make a text field.

<form id="form">
	<input type="text" id="textfield" />
</form>

Then add the javascript after the jQuery file.