<?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/dropdown</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 20 Jun 2013 01:38:47 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) 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) 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) Get value of selected option in Drop Down - jjmu15</title>
<link>http://snipplr.com/view/63250/get-value-of-selected-option-in-drop-down/</link>
<description><![CDATA[ <p>This snippet gets the value of the selected dropdown</p> ]]></description>
<pubDate>Sat, 11 Feb 2012 03:05:35 GMT</pubDate>
<guid>http://snipplr.com/view/63250/get-value-of-selected-option-in-drop-down/</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) Joomla Menu Dropdowns - cviolette</title>
<link>http://snipplr.com/view/43982/joomla-menu-dropdowns/</link>
<description><![CDATA[ <p>jQuery to make Joomla-format menu dropdowns appear on hover. Change "#mainnav" to menu container selector.</p> ]]></description>
<pubDate>Fri, 12 Nov 2010 03:55:48 GMT</pubDate>
<guid>http://snipplr.com/view/43982/joomla-menu-dropdowns/</guid>
</item>
<item>
<title>(jQuery) Custom Dropdown - touffies</title>
<link>http://snipplr.com/view/43956/custom-dropdown/</link>
<description><![CDATA[ <p>Custom dropdown field, replace defaut dropdown style with custom design.
This function does not replace the select field.</p> ]]></description>
<pubDate>Fri, 12 Nov 2010 00:00:39 GMT</pubDate>
<guid>http://snipplr.com/view/43956/custom-dropdown/</guid>
</item>
<item>
<title>(jQuery) jQuery - Dropdownify - dom111</title>
<link>http://snipplr.com/view/40516/jquery--dropdownify/</link>
<description><![CDATA[ <p>So recently I was asked to change a navigation style of an existing site to drop-down menus.

Simple, I thought, just use one of the many existing drop-down plugins. I tried many, but most seemed to use hardcoded styles and I had a few problems (some of which I encountered again, writing this).

So I’ve made this, I think it’s fairly robust, but I’m sure there’ll be problems with embedded objects (flash) and select boxes (in </p> ]]></description>
<pubDate>Wed, 15 Sep 2010 19:48:53 GMT</pubDate>
<guid>http://snipplr.com/view/40516/jquery--dropdownify/</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>
</channel>
</rss>