<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - jatkins</title>
<link>http://snipplr.com/users/jatkins/tags/label</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 23 May 2013 08:33:58 GMT</pubDate>
<item>
<title>(JavaScript) Add labels to input/textarea elements which disappear when they are given focus (if they are empty)</title>
<link>http://snipplr.com/view/44332/add-labels-to-inputtextarea-elements-which-disappear-when-they-are-given-focus-if-they-are-empty/</link>
<description><![CDATA[ <p>Public domain. Will overwrite any existing classes of the element it is applied to, so use my [add/remove CSS classes script](http://snipplr.com/view/36986/add-and-remove-css-classes-from-elements/) if you want to retain current classes.

**UPDATED 2/25/2011:** `get` function added. Script would have failed without this, unless you changed all instances of `get` to `document.getElementById`.
Add styling (e.g. change the font color) of the labels by using the "label" class.</p> ]]></description>
<pubDate>Thu, 18 Nov 2010 05:20:23 GMT</pubDate>
<guid>http://snipplr.com/view/44332/add-labels-to-inputtextarea-elements-which-disappear-when-they-are-given-focus-if-they-are-empty/</guid>
</item>
</channel>
</rss>