<?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/Value</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 20 Jun 2013 10:01:43 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) 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) on focus remove input value - jesudasjj</title>
<link>http://snipplr.com/view/60004/on-focus-remove-input-value/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 20 Oct 2011 22:46:13 GMT</pubDate>
<guid>http://snipplr.com/view/60004/on-focus-remove-input-value/</guid>
</item>
<item>
<title>(jQuery) Simple Validation of form fields - reverend</title>
<link>http://snipplr.com/view/55529/simple-validation-of-form-fields/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 21 Jun 2011 09:00:02 GMT</pubDate>
<guid>http://snipplr.com/view/55529/simple-validation-of-form-fields/</guid>
</item>
<item>
<title>(jQuery) Set/Clear Default Input Value - dubogii</title>
<link>http://snipplr.com/view/53668/setclear-default-input-value/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 17 May 2011 19:44:55 GMT</pubDate>
<guid>http://snipplr.com/view/53668/setclear-default-input-value/</guid>
</item>
<item>
<title>(jQuery) Default value for input fields (jQuery version) - riddla</title>
<link>http://snipplr.com/view/48275/default-value-for-input-fields-jquery-version/</link>
<description><![CDATA[ <p>See also the [plain JavaScript version](http://snipplr.com/view/41717/default-value-for-input-fields/).</p> ]]></description>
<pubDate>Wed, 02 Feb 2011 21:09:51 GMT</pubDate>
<guid>http://snipplr.com/view/48275/default-value-for-input-fields-jquery-version/</guid>
</item>
<item>
<title>(jQuery) Text input default value recover - andres_314</title>
<link>http://snipplr.com/view/41714/text-input-default-value-recover/</link>
<description><![CDATA[ <p>This snippet could be used when a text input has a default value. Thus, when user clicks on the input to write, the default value disappears and allows the user to write, but if the user does not type anything, the default value will appears again. It also adds a class to the input when the user is typing on it and is removed when the input loses focus.This snippet must be inside the ready event.For the HTML markup, the only thing to take care is that you must use the same class in all the inputs that you want to give this functionality. In the example I use \"input-text-js\",  but you can use whatever you want.You can see this snippet working on www.retto.com</p> ]]></description>
<pubDate>Thu, 07 Oct 2010 04:58:50 GMT</pubDate>
<guid>http://snipplr.com/view/41714/text-input-default-value-recover/</guid>
</item>
<item>
<title>(jQuery) PWDefaultValue - A jQuery Form-Assistant Plugin - minky</title>
<link>http://snipplr.com/view/35532/pwdefaultvalue--a-jquery-formassistant-plugin/</link>
<description><![CDATA[ <p>## PWDefaultValue

This jQuery Plugin allows you to set a label-like default value on an input which is toggled depending on whether the user has entered any content into the input element. Examples and such are available on http://www.pixaweb.co.uk/resources</p> ]]></description>
<pubDate>Sat, 05 Jun 2010 11:27:26 GMT</pubDate>
<guid>http://snipplr.com/view/35532/pwdefaultvalue--a-jquery-formassistant-plugin/</guid>
</item>
<item>
<title>(jQuery) jQuery - Add/Focus/Blur Input Value - smoothdzion</title>
<link>http://snipplr.com/view/22483/jquery--addfocusblur-input-value/</link>
<description><![CDATA[ <p>First value takes empty input values and adds 'Enter Value'.
Second snippet removes 'Enter Value' when input is focused.
Third snippet re-adds 'Enter Value' if the value is left blank.</p> ]]></description>
<pubDate>Wed, 04 Nov 2009 11:22:03 GMT</pubDate>
<guid>http://snipplr.com/view/22483/jquery--addfocusblur-input-value/</guid>
</item>
<item>
<title>(jQuery) Target elements with specific attributes - davebowker</title>
<link>http://snipplr.com/view/16586/target-elements-with-specific-attributes/</link>
<description><![CDATA[ <p>Easily target elements which have certain attributes using jQuery</p> ]]></description>
<pubDate>Thu, 02 Jul 2009 12:04:19 GMT</pubDate>
<guid>http://snipplr.com/view/16586/target-elements-with-specific-attributes/</guid>
</item>
</channel>
</rss>