<?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/field</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 20 Jun 2013 22:14:06 GMT</pubDate>
<item>
<title>(JavaScript) Clear Field on Focus - eldanieldeepak</title>
<link>http://snipplr.com/view/59042/clear-field-on-focus/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 24 Sep 2011 03:53:24 GMT</pubDate>
<guid>http://snipplr.com/view/59042/clear-field-on-focus/</guid>
</item>
<item>
<title>(JavaScript) Auto hide input field on focus - cfergus</title>
<link>http://snipplr.com/view/53415/auto-hide-input-field-on-focus/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 12 May 2011 03:14:54 GMT</pubDate>
<guid>http://snipplr.com/view/53415/auto-hide-input-field-on-focus/</guid>
</item>
<item>
<title>(JavaScript) Fill Any Empty HTML Field on Exit with a user supplied value - jimbo</title>
<link>http://snipplr.com/view/50643/fill-any-empty-html-field-on-exit-with-a-user-supplied-value/</link>
<description><![CDATA[ <p>Often you supply a default value in a text field which you want to automatically clear when the user enters the field.  This will do that operation and fill the field with a default value.</p> ]]></description>
<pubDate>Mon, 14 Mar 2011 23:05:59 GMT</pubDate>
<guid>http://snipplr.com/view/50643/fill-any-empty-html-field-on-exit-with-a-user-supplied-value/</guid>
</item>
<item>
<title>(JavaScript) Clear HTML Form Field on Entry - jimbo</title>
<link>http://snipplr.com/view/50642/clear-html-form-field-on-entry/</link>
<description><![CDATA[ <p>Clear a field on entry if the default text matches a supplied value. Generic to any field.</p> ]]></description>
<pubDate>Mon, 14 Mar 2011 22:53:18 GMT</pubDate>
<guid>http://snipplr.com/view/50642/clear-html-form-field-on-entry/</guid>
</item>
<item>
<title>(JavaScript) On Field focus add/remove class in form - jesudasjj</title>
<link>http://snipplr.com/view/47497/on-field-focus-addremove-class-in-form/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 19 Jan 2011 17:55:08 GMT</pubDate>
<guid>http://snipplr.com/view/47497/on-field-focus-addremove-class-in-form/</guid>
</item>
<item>
<title>(JavaScript) Clear Text Field of its default value, and return the original value - Jamie</title>
<link>http://snipplr.com/view/46089/clear-text-field-of-its-default-value-and-return-the-original-value/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 24 Dec 2010 10:10:08 GMT</pubDate>
<guid>http://snipplr.com/view/46089/clear-text-field-of-its-default-value-and-return-the-original-value/</guid>
</item>
<item>
<title>(JavaScript) Default value for input fields - riddla</title>
<link>http://snipplr.com/view/41717/default-value-for-input-fields/</link>
<description><![CDATA[ <p>In regards to progressive enhancement, see also the [jQuery version](http://snipplr.com/view/48275/default-value-for-input-fields-jquery-version/).</p> ]]></description>
<pubDate>Thu, 07 Oct 2010 05:33:20 GMT</pubDate>
<guid>http://snipplr.com/view/41717/default-value-for-input-fields/</guid>
</item>
<item>
<title>(JavaScript) Setting values of SharePoint Lookup field - digiteyes</title>
<link>http://snipplr.com/view/30179/setting-values-of-sharepoint-lookup-field/</link>
<description><![CDATA[ <p>this snippet allows you to dynamically set the value of a SharePoint lookup field based on a URL parameter</p> ]]></description>
<pubDate>Tue, 23 Mar 2010 15:25:49 GMT</pubDate>
<guid>http://snipplr.com/view/30179/setting-values-of-sharepoint-lookup-field/</guid>
</item>
<item>
<title>(JavaScript) Toggle a  money symbol to a form field on focus/blur - useful for cost data - loopdream</title>
<link>http://snipplr.com/view/15353/toggle-a--money-symbol-to-a-form-field-on-focusblur--useful-for-cost-data/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 27 May 2009 07:27:44 GMT</pubDate>
<guid>http://snipplr.com/view/15353/toggle-a--money-symbol-to-a-form-field-on-focusblur--useful-for-cost-data/</guid>
</item>
<item>
<title>(JavaScript) JavaScript Form Field Validation - clickfind</title>
<link>http://snipplr.com/view/13550/javascript-form-field-validation/</link>
<description><![CDATA[ <p>JavaScritp Form Validation Framework to validate form fields on the fly, no programming knowledge required.</p> ]]></description>
<pubDate>Sun, 29 Mar 2009 07:36:36 GMT</pubDate>
<guid>http://snipplr.com/view/13550/javascript-form-field-validation/</guid>
</item>
<item>
<title>(JavaScript) confirm password background change - jlvallelonga</title>
<link>http://snipplr.com/view/13411/confirm-password-background-change/</link>
<description><![CDATA[ <p>I just put all the functions in here
the validateConfPass function uses the key event and the two text fields to change the background color of the confPassword field when it does not equal the pass field</p> ]]></description>
<pubDate>Tue, 24 Mar 2009 15:11:24 GMT</pubDate>
<guid>http://snipplr.com/view/13411/confirm-password-background-change/</guid>
</item>
<item>
<title>(JavaScript) jquery reset select field - jimmysessions</title>
<link>http://snipplr.com/view/9168/jquery-reset-select-field/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 21 Oct 2008 16:07:24 GMT</pubDate>
<guid>http://snipplr.com/view/9168/jquery-reset-select-field/</guid>
</item>
<item>
<title>(JavaScript) JQuery ToggleVal - davebowker</title>
<link>http://snipplr.com/view/9077/jquery-toggleval/</link>
<description><![CDATA[ <p>Use by inserting the following in the head.
		
			$(document).ready(function() {
		  		$("input").toggleVal();
			});				
		</p> ]]></description>
<pubDate>Fri, 17 Oct 2008 09:37:07 GMT</pubDate>
<guid>http://snipplr.com/view/9077/jquery-toggleval/</guid>
</item>
<item>
<title>(JavaScript) Search field content control - wfdev</title>
<link>http://snipplr.com/view/5654/search-field-content-control/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 02 Apr 2008 07:14:37 GMT</pubDate>
<guid>http://snipplr.com/view/5654/search-field-content-control/</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>
<item>
<title>(JavaScript) clear form field on first focus - noah</title>
<link>http://snipplr.com/view/2206/clear-form-field-on-first-focus/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 24 Feb 2007 13:52:51 GMT</pubDate>
<guid>http://snipplr.com/view/2206/clear-form-field-on-first-focus/</guid>
</item>
</channel>
</rss>