<?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/select</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sat, 25 May 2013 23:09:58 GMT</pubDate>
<item>
<title>(JavaScript) Remove selected items from select box - j100</title>
<link>http://snipplr.com/view/69713/remove-selected-items-from-select-box/</link>
<description><![CDATA[ <p>This will remove the items in a select box/list box that have been selected.</p> ]]></description>
<pubDate>Thu, 31 Jan 2013 11:03:36 GMT</pubDate>
<guid>http://snipplr.com/view/69713/remove-selected-items-from-select-box/</guid>
</item>
<item>
<title>(JavaScript) Reset select to the default value - sanbor</title>
<link>http://snipplr.com/view/54295/reset-select-to-the-default-value/</link>
<description><![CDATA[ <p>Sets the current element of a dropdown to the default option.

   Afrikaans
   English
</p> ]]></description>
<pubDate>Tue, 24 May 2011 03:08:06 GMT</pubDate>
<guid>http://snipplr.com/view/54295/reset-select-to-the-default-value/</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) Array to SELECT - nomada</title>
<link>http://snipplr.com/view/45947/array-to-select/</link>
<description><![CDATA[ <p>This function automates the creation of the s of a  element. It's ideal for your AJAX apps when you create display elements using Javascript

It accepts to different kind of arrays:

An array of key:values…

var arrDirs = {
				"a1":"Sede central",
				"a2":"Envíos",
				"a4":"Facturación",
				"b1":"Sucursal"
			};


An array of arrays, where each of the child arrays have the sintax 'ID': value, 'LABEL': text…

var arrDirs = {
				"0":{"ID":"a1","LABEL":"Sede central"},
				"1":{"ID":"a2","LABEL":"Envíos"},
				"2":{"ID":"a4","LABEL":"Facturación"},
				"3":{"ID":"b1","LABEL":"Sucursal"}
			};

Note that the ID part can be a number or an string.</p> ]]></description>
<pubDate>Mon, 20 Dec 2010 05:39:13 GMT</pubDate>
<guid>http://snipplr.com/view/45947/array-to-select/</guid>
</item>
<item>
<title>(JavaScript) Check if option is selected, if not select default - DrCord</title>
<link>http://snipplr.com/view/43610/check-if-option-is-selected-if-not-select-default/</link>
<description><![CDATA[ <p>Very useful for changing the selected option in a select dropdown</p> ]]></description>
<pubDate>Fri, 05 Nov 2010 07:24:47 GMT</pubDate>
<guid>http://snipplr.com/view/43610/check-if-option-is-selected-if-not-select-default/</guid>
</item>
<item>
<title>(JavaScript) Next element when wheel is scrolling - Piotrek290</title>
<link>http://snipplr.com/view/36958/next-element-when-wheel-is-scrolling/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 08 Jul 2010 23:20:21 GMT</pubDate>
<guid>http://snipplr.com/view/36958/next-element-when-wheel-is-scrolling/</guid>
</item>
<item>
<title>(JavaScript) Simple javascript date select - kanampo</title>
<link>http://snipplr.com/view/25427/simple-javascript-date-select/</link>
<description><![CDATA[ <p>This script displays the current date inside a form via 3 prefilled drop down menus (day, month, year). The visitor can then specify a different date if he/she wants. You can have multiple drop down dates within the same form as well.</p> ]]></description>
<pubDate>Fri, 25 Dec 2009 17:05:08 GMT</pubDate>
<guid>http://snipplr.com/view/25427/simple-javascript-date-select/</guid>
</item>
<item>
<title>(JavaScript) Javascript Select Dropdown Box (Defaults To Last Option Selected) - karlhorky</title>
<link>http://snipplr.com/view/22001/javascript-select-dropdown-box-defaults-to-last-option-selected/</link>
<description><![CDATA[ <p>This javascript creates and writes out an HTML  dropdown box that defaults to the last option parameter passed to page. Could be used as part of a form.</p> ]]></description>
<pubDate>Tue, 27 Oct 2009 21:41:49 GMT</pubDate>
<guid>http://snipplr.com/view/22001/javascript-select-dropdown-box-defaults-to-last-option-selected/</guid>
</item>
<item>
<title>(JavaScript) US States JSON Object - garside</title>
<link>http://snipplr.com/view/14056/us-states-json-object/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 15 Apr 2009 10:16:58 GMT</pubDate>
<guid>http://snipplr.com/view/14056/us-states-json-object/</guid>
</item>
<item>
<title>(JavaScript) jQuery Input value select - 1man</title>
<link>http://snipplr.com/view/11429/jquery-input-value-select/</link>
<description><![CDATA[ <p>Click on an input field with a prefilled value, if that value equals the default then select it, if not leave it as it was. Relies on jQuery.</p> ]]></description>
<pubDate>Thu, 22 Jan 2009 05:32:58 GMT</pubDate>
<guid>http://snipplr.com/view/11429/jquery-input-value-select/</guid>
</item>
<item>
<title>(JavaScript) ListUtil - mn232nm</title>
<link>http://snipplr.com/view/10064/listutil/</link>
<description><![CDATA[ <p>对select元素(dropdownlist)的操作,包括添加删除等操作</p> ]]></description>
<pubDate>Wed, 26 Nov 2008 09:01:58 GMT</pubDate>
<guid>http://snipplr.com/view/10064/listutil/</guid>
</item>
<item>
<title>(JavaScript) JavaScript validation library - ginoplusio</title>
<link>http://snipplr.com/view/10029/javascript-validation-library/</link>
<description><![CDATA[ <p>a set of function useful to check data (functions name in italian but easy to translate).</p> ]]></description>
<pubDate>Tue, 25 Nov 2008 05:05:48 GMT</pubDate>
<guid>http://snipplr.com/view/10029/javascript-validation-library/</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) Select All Checkboxes Based On Class - aristoworks</title>
<link>http://snipplr.com/view/8299/select-all-checkboxes-based-on-class/</link>
<description><![CDATA[ <p>This is a simple javascript snippet that will allow you to specify a particular class to a group of checkboxes and then select them all at once when you click the master checkbox.  This came in very handy for a store inventory script when I needed to select all of the models of a particular manufacturer.</p> ]]></description>
<pubDate>Wed, 10 Sep 2008 20:41:04 GMT</pubDate>
<guid>http://snipplr.com/view/8299/select-all-checkboxes-based-on-class/</guid>
</item>
<item>
<title>(JavaScript) Get Selected Value - jamesming</title>
<link>http://snipplr.com/view/7461/get-selected-value/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 23 Jul 2008 11:00:25 GMT</pubDate>
<guid>http://snipplr.com/view/7461/get-selected-value/</guid>
</item>
<item>
<title>(JavaScript) website copy protection - localhorst</title>
<link>http://snipplr.com/view/5483/website-copy-protection/</link>
<description><![CDATA[ <p>I know what you think - no discussion about this needless piece of code to prevent copying texts/images from websites, but there are customers outside that are advising resistant and so I use this code to scare off their potential clienteles.</p> ]]></description>
<pubDate>Tue, 18 Mar 2008 13:18:00 GMT</pubDate>
<guid>http://snipplr.com/view/5483/website-copy-protection/</guid>
</item>
<item>
<title>(JavaScript) jquery: simule z-index to place divs over select objects (explorer bug) - victorchamorro</title>
<link>http://snipplr.com/view/4134/jquery-simule-zindex-to-place-divs-over-select-objects-explorer-bug/</link>
<description><![CDATA[ <p>using bgiframe to solve a bug in explorer: you cannot apply z-index to place divs over selects in a form!!!</p> ]]></description>
<pubDate>Wed, 14 Nov 2007 11:27:40 GMT</pubDate>
<guid>http://snipplr.com/view/4134/jquery-simule-zindex-to-place-divs-over-select-objects-explorer-bug/</guid>
</item>
<item>
<title>(JavaScript) Select ajax DOM Fill - miziomon</title>
<link>http://snipplr.com/view/4125/select-ajax-dom-fill/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 13 Nov 2007 05:57:58 GMT</pubDate>
<guid>http://snipplr.com/view/4125/select-ajax-dom-fill/</guid>
</item>
<item>
<title>(JavaScript) Focus and Select a Form Input - 1man</title>
<link>http://snipplr.com/view/3268/focus-and-select-a-form-input/</link>
<description><![CDATA[ <p>For forms with a default value onload you don't want your users to have to select the value, delete it and then insert their own input.

This function focuses on a selected input, then it selects the default text so the user can easily type their own value.</p> ]]></description>
<pubDate>Wed, 11 Jul 2007 05:51:26 GMT</pubDate>
<guid>http://snipplr.com/view/3268/focus-and-select-a-form-input/</guid>
</item>
<item>
<title>(JavaScript) Sort the OPTIONs in a SELECT menu - noah</title>
<link>http://snipplr.com/view/3265/sort-the-options-in-a-select-menu/</link>
<description><![CDATA[ <p>Author: Clyde Ingram</p> ]]></description>
<pubDate>Tue, 10 Jul 2007 15:46:00 GMT</pubDate>
<guid>http://snipplr.com/view/3265/sort-the-options-in-a-select-menu/</guid>
</item>
</channel>
</rss>