<?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/tags/Value</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sat, 25 May 2013 18:19:36 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>(ActionScript 3) AS3 MathUtils static class - adrianparr</title>
<link>http://snipplr.com/view/65581/as3-mathutils-static-class/</link>
<description><![CDATA[ <p>Credit goes to Bruno Imbrizi.</p> ]]></description>
<pubDate>Wed, 13 Jun 2012 02:56:19 GMT</pubDate>
<guid>http://snipplr.com/view/65581/as3-mathutils-static-class/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 Map a Number within one range to another range - adrianparr</title>
<link>http://snipplr.com/view/65580/as3-map-a-number-within-one-range-to-another-range/</link>
<description><![CDATA[ <p>Credit goes to Bruno Imbrizi.</p> ]]></description>
<pubDate>Wed, 13 Jun 2012 02:53:34 GMT</pubDate>
<guid>http://snipplr.com/view/65580/as3-map-a-number-within-one-range-to-another-range/</guid>
</item>
<item>
<title>(SQL) SQL - SQL Server - Add Column with Default Value and Check Constraint - denakitan</title>
<link>http://snipplr.com/view/64667/sql--sql-server--add-column-with-default-value-and-check-constraint/</link>
<description><![CDATA[ <p>Example of SQL syntax to add a new column to an existing table, define a default value to the columns for the existing rows and also add a check constraint to limit the values that the column can hold.</p> ]]></description>
<pubDate>Fri, 20 Apr 2012 01:45:29 GMT</pubDate>
<guid>http://snipplr.com/view/64667/sql--sql-server--add-column-with-default-value-and-check-constraint/</guid>
</item>
<item>
<title>(ActionScript 3) Convert values within a range to values within another range - vamapaull</title>
<link>http://snipplr.com/view/63543/convert-values-within-a-range-to-values-within-another-range/</link>
<description><![CDATA[ <p>I’m sharing with you a little utility that I find myself using a lot lately. This utility is a value convertor that you can use in those times when you need to make a volume slider or something similar where you’ll need to change a value and a value range.</p> ]]></description>
<pubDate>Thu, 23 Feb 2012 23:40:18 GMT</pubDate>
<guid>http://snipplr.com/view/63543/convert-values-within-a-range-to-values-within-another-range/</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>(JavaScript) Array.each() - iamarcel</title>
<link>http://snipplr.com/view/60540/arrayeach/</link>
<description><![CDATA[ <p>There you go, a simple implementation of a method to loop trough your JavaScript arrays. I am by no means an expert of Javascript, but I tried to make it as fast and short (in terms of amount of characters ;) ) as possible.</p> ]]></description>
<pubDate>Fri, 04 Nov 2011 08:48:20 GMT</pubDate>
<guid>http://snipplr.com/view/60540/arrayeach/</guid>
</item>
<item>
<title>(SQL) MS SQL - Select Seed, Increment and Current Identity  Values - SocialCocoa</title>
<link>http://snipplr.com/view/60501/ms-sql--select-seed-increment-and-current-identity--values/</link>
<description><![CDATA[ <p>Thanks to  Pinal Dave (http://blog.SQLAuthority.com).</p> ]]></description>
<pubDate>Thu, 03 Nov 2011 03:38:55 GMT</pubDate>
<guid>http://snipplr.com/view/60501/ms-sql--select-seed-increment-and-current-identity--values/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 Decimal To Hex - adrianparr</title>
<link>http://snipplr.com/view/60387/as3-decimal-to-hex/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 01 Nov 2011 04:22:10 GMT</pubDate>
<guid>http://snipplr.com/view/60387/as3-decimal-to-hex/</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>(PHP) Insert a Key=>Value at the beginning of an array - lemcoe9</title>
<link>http://snipplr.com/view/59332/insert-a-keyvalue-at-the-beginning-of-an-array/</link>
<description><![CDATA[ <p>There seems to be no easy way to insert a key and value at the beginning of an array, as array_unset does not allow you to specify a key. This is not a very efficient way to do it, but it works. 

Pretend the array is currently: array("a"=>"b", "c"=>"d") and you would like "x"=>"z" at the beginning....

The snippet will result in $array being: array("x"=>"z", "a"=>"b", "c"=>"d")</p> ]]></description>
<pubDate>Sun, 02 Oct 2011 12:24:14 GMT</pubDate>
<guid>http://snipplr.com/view/59332/insert-a-keyvalue-at-the-beginning-of-an-array/</guid>
</item>
<item>
<title>(HTML) Form Value Clear/Reappear Script - officiallyWise</title>
<link>http://snipplr.com/view/58183/form-value-clearreappear-script/</link>
<description><![CDATA[ <p>In HTML forms, places this script in inputs to clear the value. If input box is blank, original value repopulates the input box.</p> ]]></description>
<pubDate>Fri, 26 Aug 2011 04:49:59 GMT</pubDate>
<guid>http://snipplr.com/view/58183/form-value-clearreappear-script/</guid>
</item>
<item>
<title>(HTML) IE7 button value - inreflection7</title>
<link>http://snipplr.com/view/55924/ie7-button-value/</link>
<description><![CDATA[ <p>IE7 can be a pain when it comes to input submit buttons. In order to get the value to disappear using the text-indent: -999em; trick make sure to set text-transform: capitalize;</p> ]]></description>
<pubDate>Thu, 30 Jun 2011 03:51:29 GMT</pubDate>
<guid>http://snipplr.com/view/55924/ie7-button-value/</guid>
</item>
<item>
<title>(PHP) Search value by key in multidimensional array - jurius</title>
<link>http://snipplr.com/view/55684/search-value-by-key-in-multidimensional-array/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 25 Jun 2011 01:37:50 GMT</pubDate>
<guid>http://snipplr.com/view/55684/search-value-by-key-in-multidimensional-array/</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>(Java) char to ASCII Value - lowko0</title>
<link>http://snipplr.com/view/54403/char-to-ascii-value/</link>
<description><![CDATA[ <p>I hope it's well explained, chars are actually very easy, but sometimes
it takes a while to understand them.</p> ]]></description>
<pubDate>Thu, 26 May 2011 08:46:34 GMT</pubDate>
<guid>http://snipplr.com/view/54403/char-to-ascii-value/</guid>
</item>
<item>
<title>(HTML) delete input value on click - gabbo</title>
<link>http://snipplr.com/view/53906/delete-input-value-on-click/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 21 May 2011 08:27:24 GMT</pubDate>
<guid>http://snipplr.com/view/53906/delete-input-value-on-click/</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>(SQL) SQL Value conversion function - kashif21</title>
<link>http://snipplr.com/view/51435/sql-value-conversion-function/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 01 Apr 2011 21:50:21 GMT</pubDate>
<guid>http://snipplr.com/view/51435/sql-value-conversion-function/</guid>
</item>
</channel>
</rss>