<?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/input</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sun, 19 May 2013 11:01:37 GMT</pubDate>
<item>
<title>(JavaScript) Comprobar cadena en input con Javascript - serialk89</title>
<link>http://snipplr.com/view/66963/comprobar-cadena-en-input-con-javascript/</link>
<description><![CDATA[ <p>Comprueba la existencia de una cadena de texto en un input con javascript. (LA impresion del input está en CAKEPHP)</p> ]]></description>
<pubDate>Fri, 31 Aug 2012 03:45:02 GMT</pubDate>
<guid>http://snipplr.com/view/66963/comprobar-cadena-en-input-con-javascript/</guid>
</item>
<item>
<title>(JavaScript) How to show/hide input value on focus - fackz</title>
<link>http://snipplr.com/view/64376/how-to-showhide-input-value-on-focus/</link>
<description><![CDATA[ <p>The simplest approach I know.</p> ]]></description>
<pubDate>Fri, 06 Apr 2012 04:53:53 GMT</pubDate>
<guid>http://snipplr.com/view/64376/how-to-showhide-input-value-on-focus/</guid>
</item>
<item>
<title>(JavaScript) Increment/decrement input fields with values that have units - jatkins</title>
<link>http://snipplr.com/view/64331/incrementdecrement-input-fields-with-values-that-have-units/</link>
<description><![CDATA[ <p>Released into the public domain.</p> ]]></description>
<pubDate>Tue, 03 Apr 2012 20:37:27 GMT</pubDate>
<guid>http://snipplr.com/view/64331/incrementdecrement-input-fields-with-values-that-have-units/</guid>
</item>
<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) Titanium Simple Numberpad Entry - alexstone</title>
<link>http://snipplr.com/view/58268/titanium-simple-numberpad-entry/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 30 Aug 2011 00:17:49 GMT</pubDate>
<guid>http://snipplr.com/view/58268/titanium-simple-numberpad-entry/</guid>
</item>
<item>
<title>(JavaScript) Javascript Character input restriction script, with length limiter - Krummelz</title>
<link>http://snipplr.com/view/58166/javascript-character-input-restriction-script-with-length-limiter/</link>
<description><![CDATA[ <p>Restricts the characters that are entered into a textbox. Also limits the length of the value to 5.</p> ]]></description>
<pubDate>Thu, 25 Aug 2011 22:28:46 GMT</pubDate>
<guid>http://snipplr.com/view/58166/javascript-character-input-restriction-script-with-length-limiter/</guid>
</item>
<item>
<title>(JavaScript) Form input type text reset onfocus - smonteru</title>
<link>http://snipplr.com/view/54422/form-input-type-text-reset-onfocus/</link>
<description><![CDATA[ <p>Reset input type text onfocus if value differs from default.</p> ]]></description>
<pubDate>Thu, 26 May 2011 19:49:54 GMT</pubDate>
<guid>http://snipplr.com/view/54422/form-input-type-text-reset-onfocus/</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) 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) If selected option value contains.... - reynish</title>
<link>http://snipplr.com/view/53190/if-selected-option-value-contains/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 07 May 2011 19:37:31 GMT</pubDate>
<guid>http://snipplr.com/view/53190/if-selected-option-value-contains/</guid>
</item>
<item>
<title>(JavaScript) Prohibir ciertos caracteres en un input - elquemero</title>
<link>http://snipplr.com/view/46612/prohibir-ciertos-caracteres-en-un-input/</link>
<description><![CDATA[ <p>No permite ingresar la ñ o Ñ</p> ]]></description>
<pubDate>Thu, 06 Jan 2011 04:58:57 GMT</pubDate>
<guid>http://snipplr.com/view/46612/prohibir-ciertos-caracteres-en-un-input/</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) Better Javascript Keyboard Navigation - FatFolderDesigner</title>
<link>http://snipplr.com/view/45934/better-javascript-keyboard-navigation/</link>
<description><![CDATA[ <p>This fixes the downside of the original javascript keyboard navigation snippet I posted here  so that if you manually scroll past to a new chapter mark it will register that and keep track of your location better. The old code would ignore any scrolling you did, so if you read past a chapter and decided to skip one it would just take you to the top of the one you wanted to skip (I don't know if I'm explaining it behavior properly, theres a link in that post you can take to get to the example of the code set up and running on my site to see what I mean) and this one works properly

As with the first JavaScript Navigation snippet you can see it in action on my site and enjoy reading a classic in the process (it's even a different book this time).

As for implementation, the quick and dirty was in applying an onkeydown and an onload to the body tag, for the keycatch and init functions respectively. There are better ways but I was was more interested in testing the code rather than the implementation.</p> ]]></description>
<pubDate>Sun, 19 Dec 2010 10:12:22 GMT</pubDate>
<guid>http://snipplr.com/view/45934/better-javascript-keyboard-navigation/</guid>
</item>
<item>
<title>(JavaScript) Javascript Keyboard Navigation - FatFolderDesigner</title>
<link>http://snipplr.com/view/45909/javascript-keyboard-navigation/</link>
<description><![CDATA[ <p>Starting with GoogleTV in mind I made a script to help navigate a page key basic key inputs, in this case I'm using the left and right arrows to jump between the H1 tags on a page, although the modifications to make it do other things would be very simple. Theres a more working concept on the link so you can see it in action without any coding on your part (and participate in some proper reading).

There is one downside to this method, if manually scrolling down past an H1 tag it does not realize it, but I'll work on that once I get a chance</p> ]]></description>
<pubDate>Sat, 18 Dec 2010 14:53:04 GMT</pubDate>
<guid>http://snipplr.com/view/45909/javascript-keyboard-navigation/</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) No permitir ingresar ciertos caracteres en un input - elquemero</title>
<link>http://snipplr.com/view/43910/no-permitir-ingresar-ciertos-caracteres-en-un-input/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 11 Nov 2010 01:37:17 GMT</pubDate>
<guid>http://snipplr.com/view/43910/no-permitir-ingresar-ciertos-caracteres-en-un-input/</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) Empty Form Field Onclick - Farhan</title>
<link>http://snipplr.com/view/39548/empty-form-field-onclick/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 26 Aug 2010 14:42:26 GMT</pubDate>
<guid>http://snipplr.com/view/39548/empty-form-field-onclick/</guid>
</item>
<item>
<title>(JavaScript) Search clearance - ricosushi</title>
<link>http://snipplr.com/view/37262/search-clearance/</link>
<description><![CDATA[ <p>Clears de default value from a input box on focus and returns its original value on blur.</p> ]]></description>
<pubDate>Wed, 14 Jul 2010 07:38:21 GMT</pubDate>
<guid>http://snipplr.com/view/37262/search-clearance/</guid>
</item>
<item>
<title>(JavaScript) MOOTOOLS JS - Clear input field onClick onFocus on click focus active - brandonjp</title>
<link>http://snipplr.com/view/36794/mootools-js--clear-input-field-onclick-onfocus-on-click-focus-active/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 07 Jul 2010 04:27:40 GMT</pubDate>
<guid>http://snipplr.com/view/36794/mootools-js--clear-input-field-onclick-onfocus-on-click-focus-active/</guid>
</item>
</channel>
</rss>