<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/javascript/tags/textarea</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sat, 25 May 2013 09:07:19 GMT</pubDate>
<item>
<title>(JavaScript) Limite de caracteres em textarea - thiagotargino</title>
<link>http://snipplr.com/view/58381/limite-de-caracteres-em-textarea/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 02 Sep 2011 00:30:22 GMT</pubDate>
<guid>http://snipplr.com/view/58381/limite-de-caracteres-em-textarea/</guid>
</item>
<item>
<title>(JavaScript) check if &amp;amp;lt;input&amp;amp;gt; or &amp;amp;lt;textarea&amp;amp;gt;  has the focus - wirenaught</title>
<link>http://snipplr.com/view/54369/check-if-ltinputgt-or-lttextareagt--has-the-focus/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 25 May 2011 15:20:23 GMT</pubDate>
<guid>http://snipplr.com/view/54369/check-if-ltinputgt-or-lttextareagt--has-the-focus/</guid>
</item>
<item>
<title>(JavaScript) Textarea limitazione caratteri - kreamweb</title>
<link>http://snipplr.com/view/44575/textarea-limitazione-caratteri/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 22 Nov 2010 01:15:24 GMT</pubDate>
<guid>http://snipplr.com/view/44575/textarea-limitazione-caratteri/</guid>
</item>
<item>
<title>(JavaScript) Add labels to input/textarea elements which disappear when they are given focus (if they are empty) - jatkins</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>
<item>
<title>(JavaScript) Enforce maxlength for all textareas on page - housecor</title>
<link>http://snipplr.com/view/40504/enforce-maxlength-for-all-textareas-on-page/</link>
<description><![CDATA[ <p>Just be sure to slap the div for the chars left message within the same div/p as the textarea so the dom walk works.</p> ]]></description>
<pubDate>Wed, 15 Sep 2010 11:22:25 GMT</pubDate>
<guid>http://snipplr.com/view/40504/enforce-maxlength-for-all-textareas-on-page/</guid>
</item>
<item>
<title>(JavaScript) Basic Textarea Remaining Characters Script - cfleschhut</title>
<link>http://snipplr.com/view/39606/basic-textarea-remaining-characters-script/</link>
<description><![CDATA[ <p>different solution by PPK:\\r\\n[http://www.quirksmode.org/book/examplescripts/maxlength/index.html](http://www.quirksmode.org/book/examplescripts/maxlength/index.html)</p> ]]></description>
<pubDate>Fri, 27 Aug 2010 18:19:47 GMT</pubDate>
<guid>http://snipplr.com/view/39606/basic-textarea-remaining-characters-script/</guid>
</item>
<item>
<title>(JavaScript) Escape HTML for a textarea - Jamie</title>
<link>http://snipplr.com/view/31122/escape-html-for-a-textarea/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 08 Apr 2010 18:59:40 GMT</pubDate>
<guid>http://snipplr.com/view/31122/escape-html-for-a-textarea/</guid>
</item>
<item>
<title>(JavaScript) ADD MAXIMUM LENGTH AND COUNTER TO CKEDITOR (FCKEDITOR) - vagrantradio</title>
<link>http://snipplr.com/view/28453/add-maximum-length-and-counter-to-ckeditor-fckeditor/</link>
<description><![CDATA[ <p>Adds a functioning counter and maxlength to fckeditor textareas</p> ]]></description>
<pubDate>Tue, 16 Feb 2010 16:02:07 GMT</pubDate>
<guid>http://snipplr.com/view/28453/add-maximum-length-and-counter-to-ckeditor-fckeditor/</guid>
</item>
<item>
<title>(JavaScript) Dynamically expand a textarea based on the amount of text - segdeha</title>
<link>http://snipplr.com/view/16039/dynamically-expand-a-textarea-based-on-the-amount-of-text/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 17 Jun 2009 19:14:10 GMT</pubDate>
<guid>http://snipplr.com/view/16039/dynamically-expand-a-textarea-based-on-the-amount-of-text/</guid>
</item>
<item>
<title>(JavaScript) validate length of string - jlvallelonga</title>
<link>http://snipplr.com/view/12300/validate-length-of-string/</link>
<description><![CDATA[ <p>this function returns if the passed string is shorter than the limit or not
when you press keys other than F5, backspace, or any arrow keys and the limit is reached it shows an alert.

use with isValueInArray function</p> ]]></description>
<pubDate>Tue, 17 Feb 2009 13:21:36 GMT</pubDate>
<guid>http://snipplr.com/view/12300/validate-length-of-string/</guid>
</item>
<item>
<title>(JavaScript) textarea javascript - manec</title>
<link>http://snipplr.com/view/11022/textarea-javascript/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 09 Jan 2009 04:50:51 GMT</pubDate>
<guid>http://snipplr.com/view/11022/textarea-javascript/</guid>
</item>
<item>
<title>(JavaScript) YUI maximum length for textarea (with counter) - flashpro</title>
<link>http://snipplr.com/view/10268/yui-maximum-length-for-textarea-with-counter/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 04 Dec 2008 15:53:49 GMT</pubDate>
<guid>http://snipplr.com/view/10268/yui-maximum-length-for-textarea-with-counter/</guid>
</item>
<item>
<title>(JavaScript) How to replace selected textarea value using javascript - jamesming</title>
<link>http://snipplr.com/view/8406/how-to-replace-selected-textarea-value-using-javascript/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 15 Sep 2008 14:04:58 GMT</pubDate>
<guid>http://snipplr.com/view/8406/how-to-replace-selected-textarea-value-using-javascript/</guid>
</item>
<item>
<title>(JavaScript) Write Text in a TextArea - Victoor</title>
<link>http://snipplr.com/view/5023/write-text-in-a-textarea/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 12 Feb 2008 12:57:11 GMT</pubDate>
<guid>http://snipplr.com/view/5023/write-text-in-a-textarea/</guid>
</item>
<item>
<title>(JavaScript) Toggles instructional and default copy text and styles - elli</title>
<link>http://snipplr.com/view/3596/toggles-instructional-and-default-copy-text-and-styles/</link>
<description><![CDATA[ <p>This utility function attaches listeners to a text field or text area. It supports default text for instructional copy. The original text in the field is used as the instructional/default text. When the box gets focus, it disappears and the user can type. If the focus is lost and the box is empty, the original text will be placed again. 

The method also swaps CSS class if the class names are passes as arguments. There is one class for default text, and one for user text.
This is optional.

Usage:
Create a text field in HTML. For example, use parameters:

input type="text" id="t1" class="textFieldDefault iCopy" value="Type something here"

Then in script block:

sl_addClearCopyListeners(document.getElementById("t1"), 'iCopy' , 'noCopy');

// or without CSS classes:
sl_addClearCopyListeners(document.getElementById("t1"));
'noCopy');</p> ]]></description>
<pubDate>Wed, 29 Aug 2007 18:42:39 GMT</pubDate>
<guid>http://snipplr.com/view/3596/toggles-instructional-and-default-copy-text-and-styles/</guid>
</item>
</channel>
</rss>