<?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/jquery/tags/select</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sat, 18 May 2013 23:14:22 GMT</pubDate>
<item>
<title>(jQuery) Set Default Value for Select (dropdown) Lists Using value attribute - halk</title>
<link>http://snipplr.com/view/67752/set-default-value-for-select-dropdown-lists-using-value-attribute/</link>
<description><![CDATA[ <p>For some reason setting a default value for select elements does not work. This one line of jquery solves that problem.  Assign a value (value="something") to the select tag that is to be the default value.  With jquery get all select elements with a (value) attribute set.  For some reason I couldnt get the value of (value) with jquery, it would only return the first item in the list and not the value of the attribute(value). Oldschool Javascript managed to return it though.  The result is that when the document becomes ready jquery finds all select boxes and changes their value to the value stored in the attribute(value) of the select tag.  This means that you can set default values for select elements in the same way you set them for other elements - by assigning them a (value)  -  value="whatever"</p> ]]></description>
<pubDate>Tue, 16 Oct 2012 01:33:32 GMT</pubDate>
<guid>http://snipplr.com/view/67752/set-default-value-for-select-dropdown-lists-using-value-attribute/</guid>
</item>
<item>
<title>(jQuery) Speed up jQuery UI Autocomplete Combobox with very large select lists - Huskie</title>
<link>http://snipplr.com/view/64623/speed-up-jquery-ui-autocomplete-combobox-with-very-large-select-lists/</link>
<description><![CDATA[ <p>With the current combobox implementation, the full list is emptied and re-rendered every time you expand the dropdown. Also you are stuck with setting the minLength to 0, because it has to do an empty search to get the full list.

Here is my own implementation extending the autocomplete widget. It renders the full list just once, and reuses it whenever the dropdown button is clicked. This also removes the dependence of the option minLength = 0. It also works with arrays, and ajax as list source. Also if you have multiple large list, the widget initialization is added to a queue so it can run in the background, and not freeze the browser.</p> ]]></description>
<pubDate>Tue, 17 Apr 2012 19:56:43 GMT</pubDate>
<guid>http://snipplr.com/view/64623/speed-up-jquery-ui-autocomplete-combobox-with-very-large-select-lists/</guid>
</item>
<item>
<title>(jQuery) custom jquery selectbox dropdown - rumremix</title>
<link>http://snipplr.com/view/64524/custom-jquery-selectbox-dropdown/</link>
<description><![CDATA[ <p>Simple solution found via link. Just edit code from demo page(s). Also http://uniformjs.com/</p> ]]></description>
<pubDate>Thu, 12 Apr 2012 09:25:51 GMT</pubDate>
<guid>http://snipplr.com/view/64524/custom-jquery-selectbox-dropdown/</guid>
</item>
<item>
<title>(jQuery) validar limite de elementos seleccionados en select multiple - rickyslow</title>
<link>http://snipplr.com/view/64043/validar-limite-de-elementos-seleccionados-en-select-multiple/</link>
<description><![CDATA[ <p>validar limite de elementos seleccionados en select multiple</p> ]]></description>
<pubDate>Tue, 20 Mar 2012 06:56:44 GMT</pubDate>
<guid>http://snipplr.com/view/64043/validar-limite-de-elementos-seleccionados-en-select-multiple/</guid>
</item>
<item>
<title>(jQuery) PHP/ Jquery Dropdown Select - LadyLoomis</title>
<link>http://snipplr.com/view/63485/php-jquery-dropdown-select/</link>
<description><![CDATA[ <p>Set a variable by getting the URLs id with PHP.  Find the the option with the name value that is equal with the variable and add "selected" to it.</p> ]]></description>
<pubDate>Wed, 22 Feb 2012 04:24:55 GMT</pubDate>
<guid>http://snipplr.com/view/63485/php-jquery-dropdown-select/</guid>
</item>
<item>
<title>(jQuery) Fill select list with text value pairs - Neven</title>
<link>http://snipplr.com/view/61825/fill-select-list-with-text-value-pairs/</link>
<description><![CDATA[ <p>This snippet describes how to fill select html element with Text, Value pairs
where 'Text' is displayed to the user and 'Value' is actual value to be processed.</p> ]]></description>
<pubDate>Mon, 12 Dec 2011 21:37:18 GMT</pubDate>
<guid>http://snipplr.com/view/61825/fill-select-list-with-text-value-pairs/</guid>
</item>
<item>
<title>(jQuery) Metodo Change en jQuery - serialk89</title>
<link>http://snipplr.com/view/57779/metodo-change-en-jquery/</link>
<description><![CDATA[ <p>Select dinamico para el cambio de</p> ]]></description>
<pubDate>Fri, 12 Aug 2011 08:32:53 GMT</pubDate>
<guid>http://snipplr.com/view/57779/metodo-change-en-jquery/</guid>
</item>
<item>
<title>(jQuery) JQuery - Got to URL on Option Select - smoothdzion</title>
<link>http://snipplr.com/view/50997/jquery--got-to-url-on-option-select/</link>
<description><![CDATA[ <p>Use this to go to a URL when selecting an option.</p> ]]></description>
<pubDate>Wed, 23 Mar 2011 09:48:47 GMT</pubDate>
<guid>http://snipplr.com/view/50997/jquery--got-to-url-on-option-select/</guid>
</item>
<item>
<title>(jQuery) jQuery Cursor Functions - crutzdesigns</title>
<link>http://snipplr.com/view/48459/jquery-cursor-functions/</link>
<description><![CDATA[ <p>Used on ``'s and ``'s
Several jQuery functions for getting the current cursor position and setting the current cursor position. Also allows for selecting text in a certain range.

Usage:

  $("input[name='username']").getCursorPosition();
  $("input[name='username']").setCursorPosition(5);
  $("input[name='username']").getSelection();
  $("input[name='username']").getSelectionStart();
  $("input[name='username']").getSelectionEnd();
  $("input[name='username']").setSelection(4, 20);
</p> ]]></description>
<pubDate>Sat, 05 Feb 2011 09:48:04 GMT</pubDate>
<guid>http://snipplr.com/view/48459/jquery-cursor-functions/</guid>
</item>
<item>
<title>(jQuery) jQuery fancy select dropdown menu - peckham</title>
<link>http://snipplr.com/view/48107/jquery-fancy-select-dropdown-menu/</link>
<description><![CDATA[ <p>The option elements in the original select may provide an image and a second line of text by using a data-img and a data-info attribute.</p> ]]></description>
<pubDate>Sun, 30 Jan 2011 12:35:10 GMT</pubDate>
<guid>http://snipplr.com/view/48107/jquery-fancy-select-dropdown-menu/</guid>
</item>
<item>
<title>(jQuery) Select Class and ID together - sb_01</title>
<link>http://snipplr.com/view/41278/select-class-and-id-together/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 01 Oct 2010 23:28:48 GMT</pubDate>
<guid>http://snipplr.com/view/41278/select-class-and-id-together/</guid>
</item>
<item>
<title>(jQuery) JQuery: Select All/Clear - mattvbiggs</title>
<link>http://snipplr.com/view/41113/jquery-select-allclear/</link>
<description><![CDATA[ <p>This is used in combination with JavaScript and MVC (hence the ViewData object). If this code is pasted into a MVC View User Control (.ascx) file, it becomes a reusable Select All/Clear control. It was originally written with a C# codebase. It will work in VB as well, with minor changes (i.e. change all square brackets around ViewData to parenthesis). Also, below the closing script tag is code that is used to call the control. Make sure the string value of the first parameter matches the name of the ascx file that contains the script.</p> ]]></description>
<pubDate>Tue, 28 Sep 2010 23:41:51 GMT</pubDate>
<guid>http://snipplr.com/view/41113/jquery-select-allclear/</guid>
</item>
<item>
<title>(jQuery) Select the specified option for alle html selects as jQuery. - pogosheep</title>
<link>http://snipplr.com/view/38706/select-the-specified-option-for-alle-html-selects-as-jquery/</link>
<description><![CDATA[ <p>Select the specified option for alle html selects as jQuery.</p> ]]></description>
<pubDate>Sun, 08 Aug 2010 07:31:17 GMT</pubDate>
<guid>http://snipplr.com/view/38706/select-the-specified-option-for-alle-html-selects-as-jquery/</guid>
</item>
<item>
<title>(jQuery) Sort Options in a Select Box - Meander365</title>
<link>http://snipplr.com/view/38028/sort-options-in-a-select-box/</link>
<description><![CDATA[ <p>Incredibly useful. Great when you need to remove and add options to selectboxes.</p> ]]></description>
<pubDate>Thu, 29 Jul 2010 14:21:38 GMT</pubDate>
<guid>http://snipplr.com/view/38028/sort-options-in-a-select-box/</guid>
</item>
<item>
<title>(jQuery) Easy JQuery Asp.Net Control Selection - delikassap</title>
<link>http://snipplr.com/view/34621/easy-jquery-aspnet-control-selection/</link>
<description><![CDATA[ <p>// Taken from  :
// http://www.west-wind.com/weblog/posts/42319.aspx</p> ]]></description>
<pubDate>Mon, 17 May 2010 07:21:01 GMT</pubDate>
<guid>http://snipplr.com/view/34621/easy-jquery-aspnet-control-selection/</guid>
</item>
<item>
<title>(jQuery) evidenzia testo - Mosaic</title>
<link>http://snipplr.com/view/32949/evidenzia-testo/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 23 Apr 2010 09:06:33 GMT</pubDate>
<guid>http://snipplr.com/view/32949/evidenzia-testo/</guid>
</item>
<item>
<title>(jQuery) Custom Select Box CSS Style Plugin: jQuery + CSS - adamcoulombe</title>
<link>http://snipplr.com/view/29233/custom-select-box-css-style-plugin-jquery--css/</link>
<description><![CDATA[ <p>NOTE: THIS HAS BEEN MOVED TO GITHUB:
If you have any ideas or improvements for this script feel free to fork or contribute or discuss over there:
https://github.com/adamcoulombe/jquery.customSelect


Plugin Download: http://www.adamcoulombe.info/lab/jquery/select-box/customSelect.jquery.js. ...............Demo: http://www.adamcoulombe.info/lab/jquery/select-box/ ...............This lightweight, unintrusive technique uses the native select box functionality of the web browser, and overlays a stylable SPAN element in order to acheive your desired look. Since it makes use of default browser functionality, it can be treated just like any ordinary HTML select box.</p> ]]></description>
<pubDate>Wed, 03 Mar 2010 15:04:57 GMT</pubDate>
<guid>http://snipplr.com/view/29233/custom-select-box-css-style-plugin-jquery--css/</guid>
</item>
<item>
<title>(jQuery) Set Focus to the Next Input Field with jQuery - Meander365</title>
<link>http://snipplr.com/view/26969/set-focus-to-the-next-input-field-with-jquery/</link>
<description><![CDATA[ <p>I was recently faced with the problem of setting focus to the next input field. The challenge was that I didn’t know what that field was. So given an input field, find the next logical (in the order of the DOM) input field and set focus. I came up with the following jQuery function (plugin) to accomplish this:</p> ]]></description>
<pubDate>Sun, 24 Jan 2010 22:57:00 GMT</pubDate>
<guid>http://snipplr.com/view/26969/set-focus-to-the-next-input-field-with-jquery/</guid>
</item>
<item>
<title>(jQuery) Cascading Select boxes - jsatt</title>
<link>http://snipplr.com/view/26338/cascading-select-boxes/</link>
<description><![CDATA[ <p>[Creative Commons Attribution-Share Alike 3.0 Unported License](http://creativecommons.org/licenses/by-sa/3.0/)</p> ]]></description>
<pubDate>Tue, 12 Jan 2010 17:55:24 GMT</pubDate>
<guid>http://snipplr.com/view/26338/cascading-select-boxes/</guid>
</item>
<item>
<title>(jQuery) Add elements into a list from a select field - stancox</title>
<link>http://snipplr.com/view/21632/add-elements-into-a-list-from-a-select-field/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 22 Oct 2009 10:20:23 GMT</pubDate>
<guid>http://snipplr.com/view/21632/add-elements-into-a-list-from-a-select-field/</guid>
</item>
</channel>
</rss>