<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Update Select Elements On The Fly</title> <atom:link href="http://www.elanman.co.uk/2009/09/update-select-elements-on-the-fly/feed/" rel="self" type="application/rss+xml" /><link>http://www.elanman.co.uk/2009/09/update-select-elements-on-the-fly/</link> <description>ElanMan&#039;s Code Snippets</description> <lastBuildDate>Wed, 18 Jan 2012 12:55:26 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Kit Barker</title><link>http://www.elanman.co.uk/2009/09/update-select-elements-on-the-fly/comment-page-1/#comment-260</link> <dc:creator>Kit Barker</dc:creator> <pubDate>Tue, 28 Sep 2010 09:29:28 +0000</pubDate> <guid
isPermaLink="false">http://www.elanman.co.uk/?p=1065#comment-260</guid> <description>Hi Ben,
Great post.
One thing I thought of adding as I was using it was something to stop the day select going back to 1 if you move to a month that has less days in.
For example, if I select 31st December but then move to November, I&#039;d want to preserve the fact that I&#039;d selected the last day in the month. So something like:
&lt;code&gt;
if (selectedDay &gt; numdays) {
dayselect.selectedIndex = numdays - 1;
}
&lt;/code&gt;
placed at the end of the changeDaySelect function would preserve that.</description> <content:encoded><![CDATA[<p>Hi Ben,</p><p>Great post.</p><p>One thing I thought of adding as I was using it was something to stop the day select going back to 1 if you move to a month that has less days in.</p><p>For example, if I select 31st December but then move to November, I&#8217;d want to preserve the fact that I&#8217;d selected the last day in the month. So something like:</p><p><code><br
/> if (selectedDay &gt; numdays) {<br
/> dayselect.selectedIndex = numdays - 1;<br
/> }<br
/> </code></p><p>placed at the end of the changeDaySelect function would preserve that.</p> ]]></content:encoded> </item> <item><title>By: Cienega32</title><link>http://www.elanman.co.uk/2009/09/update-select-elements-on-the-fly/comment-page-1/#comment-156</link> <dc:creator>Cienega32</dc:creator> <pubDate>Fri, 25 Dec 2009 22:59:52 +0000</pubDate> <guid
isPermaLink="false">http://www.elanman.co.uk/?p=1065#comment-156</guid> <description>New to .js
New to drop lists
EXACTLY what I needed!
My hero!
Thanks for sharing.</description> <content:encoded><![CDATA[<p>New to .js<br
/> New to drop lists<br
/> EXACTLY what I needed!<br
/> My hero!</p><p>Thanks for sharing.</p> ]]></content:encoded> </item> <item><title>By: ElanMan</title><link>http://www.elanman.co.uk/2009/09/update-select-elements-on-the-fly/comment-page-1/#comment-132</link> <dc:creator>ElanMan</dc:creator> <pubDate>Fri, 04 Sep 2009 13:26:31 +0000</pubDate> <guid
isPermaLink="false">http://www.elanman.co.uk/?p=1065#comment-132</guid> <description>Thanks Mihai and Jack,
Welcome to the blog :)</description> <content:encoded><![CDATA[<p>Thanks Mihai and Jack,<br
/> Welcome to the blog <img
src='http://www.elanman.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p> ]]></content:encoded> </item> <item><title>By: Mihai Georgescu</title><link>http://www.elanman.co.uk/2009/09/update-select-elements-on-the-fly/comment-page-1/#comment-131</link> <dc:creator>Mihai Georgescu</dc:creator> <pubDate>Fri, 04 Sep 2009 13:17:43 +0000</pubDate> <guid
isPermaLink="false">http://www.elanman.co.uk/?p=1065#comment-131</guid> <description>Hi Ben,
Cool little function (daysInMonth) and had no idea that JS counts months from 0.
Thanks ;)</description> <content:encoded><![CDATA[<p>Hi Ben,</p><p>Cool little function (daysInMonth) and had no idea that JS counts months from 0.<br
/> Thanks <img
src='http://www.elanman.co.uk/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p> ]]></content:encoded> </item> <item><title>By: Jack Franklin</title><link>http://www.elanman.co.uk/2009/09/update-select-elements-on-the-fly/comment-page-1/#comment-129</link> <dc:creator>Jack Franklin</dc:creator> <pubDate>Fri, 04 Sep 2009 12:27:41 +0000</pubDate> <guid
isPermaLink="false">http://www.elanman.co.uk/?p=1065#comment-129</guid> <description>I read yesterday&#039;s and enjoyed it a lot and today was just as good :) Thanks Ben.</description> <content:encoded><![CDATA[<p>I read yesterday&#8217;s and enjoyed it a lot and today was just as good <img
src='http://www.elanman.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> Thanks Ben.</p> ]]></content:encoded> </item> </channel> </rss>
