<?xml version="1.0" encoding="utf-8"?>
			
			<rss version="2.0" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:cc="http://web.resource.org/cc/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">

			<channel>
			<title>Jim.Leether - The VW Code - JQuery</title>
			<link>http://www.jimleether.com/index.cfm</link>
			<description></description>
			<language>en-us</language>
			<pubDate>Tue, 07 Sep 2010 00:16:17 -0400</pubDate>
			<lastBuildDate>Mon, 08 Sep 2008 13:03:00 -0400</lastBuildDate>
			<generator>BlogCFC</generator>
			<docs>http://blogs.law.harvard.edu/tech/rss</docs>
			<managingEditor>jim@leether.com</managingEditor>
			<webMaster>jim@leether.com</webMaster>
			<itunes:subtitle></itunes:subtitle>
			<itunes:summary></itunes:summary>
			<itunes:category text="Technology" />
			<itunes:category text="Technology">
				<itunes:category text="Podcasting" />
			</itunes:category>
			<itunes:category text="Technology">
				<itunes:category text="Tech News" />
			</itunes:category>
			<itunes:keywords></itunes:keywords>
			<itunes:author></itunes:author>
			<itunes:owner>
				<itunes:email>jim@leether.com</itunes:email>
				<itunes:name></itunes:name>
			</itunes:owner>
			<itunes:image href="" />
			<image>
				<url></url>
				<title>Jim.Leether - The VW Code</title>
				<link>http://www.jimleether.com/index.cfm</link>
			</image>
			<itunes:explicit>no</itunes:explicit>
			
			
			
			
			
			<item>
				<title>JQuery Workaround for IE Selects</title>
				<link>http://www.jimleether.com/index.cfm/2008/9/8/JQuery-Workaround-for-IE-Selects</link>
				<description>
				
				While trying to append an option to a html select and make it the selected value for a project I was working on, I noticed that although the code worked perfectly in FIrefox, the same code would add a blank entry to my select in IE.  After doing some poking around I found this in a &lt;a href=&quot;http://dev.jquery.com/ticket/1641&quot;&gt;bug report&lt;/a&gt; on the JQuery website.  Since the person reporting the bug posted a workaround, they marked it as will not fix.

Code that works in FF:
&lt;code&gt;
$(&quot;select[name=&apos;MySelect&apos;]&quot;).append(new Option(&apos;value&apos;, &apos;text&apos;, selected));
&lt;/code&gt;
Workaround for IE:
&lt;code&gt;
$(&quot;select[name=&apos;MySelect&apos;]&quot;).append(&quot;&lt;option selected=&apos;selected&apos; value=&apos;value&apos;&gt; command_value&lt;/option&gt;&quot;);
&lt;/code&gt;
These work great for static values.  I had a heck of a time finding some code for those of us that want to use variables.  After playing with some concatination I came up with this.
&lt;code&gt;
$(&quot;select[name=&apos;MySelect&apos;]&quot;).append(&quot;&lt;option selected=&apos;selected&apos; value=&apos;&quot; + valueVariable + &quot;&apos;&gt;&quot; + displayVariable + &quot;&lt;/option&gt;&quot;);
&lt;/code&gt;
This solved my problem and added the new option to my select box and made it the selected value using the information in my form.
				
				</description>
						
				
				<category>JQuery</category>				
				
				<pubDate>Mon, 08 Sep 2008 13:03:00 -0400</pubDate>
				<guid>http://www.jimleether.com/index.cfm/2008/9/8/JQuery-Workaround-for-IE-Selects</guid>
				
			</item>
			
		 	
			</channel></rss>