<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Alex's  Rocket &#187; jQuery UI</title>
	<atom:link href="http://klalex.com/tag/jquery-ui/feed/" rel="self" type="application/rss+xml" />
	<link>http://klalex.com</link>
	<description>Developing web applications, startups, technologies</description>
	<lastBuildDate>Tue, 21 Jun 2011 13:45:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>jQuery UI: Datepicker for birth date input</title>
		<link>http://klalex.com/2009/07/jquery-ui-datepicker-for-birth-date-input/</link>
		<comments>http://klalex.com/2009/07/jquery-ui-datepicker-for-birth-date-input/#comments</comments>
		<pubDate>Sat, 11 Jul 2009 17:24:20 +0000</pubDate>
		<dc:creator>klalex</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[birth date]]></category>
		<category><![CDATA[datepicker]]></category>
		<category><![CDATA[jQuery UI]]></category>

		<guid isPermaLink="false">http://klalex.com/?p=57</guid>
		<description><![CDATA[I decided to use jQuery UI Datepicker control for one of project and faced with the some strange behavior. At first, I decided to find a way to select month and year quickly because switching months with previous button will unhappy every user. So I&#8217;ve added the following options: $&#40;&#8216;#datepicker&#8217;&#41;.datepicker&#40;&#123; &#160; &#160; changeMonth: true, &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>I decided to use <a href="http://jqueryui.com/demos/datepicker/">jQuery UI Datepicker control</a> for one of project and faced with the some strange behavior. At first, I decided to find a way to select month and year quickly because switching months with previous button will unhappy every user. So I&#8217;ve added the following options:</p>
<div class="codesnip-container" >
<div class="javascript codesnip" style="font-family:monospace;">$<span class="br0">&#40;</span><span class="st0">&#8216;#datepicker&#8217;</span><span class="br0">&#41;</span>.<span class="me1">datepicker</span><span class="br0">&#40;</span><span class="br0">&#123;</span><br />
&nbsp; &nbsp; changeMonth<span class="sy0">:</span> <span class="kw2">true</span><span class="sy0">,</span><br />
&nbsp; &nbsp; changeYear<span class="sy0">:</span> <span class="kw2">true</span><br />
<span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</div>
<p>Well it&#8217;s much better already but here I found that not much years are displayed in the dropdown &#8211; only from 1999 to 2019. I spent about minute to find out that range changes when I select year. So it shows -10 year as down date and +10 years as up value (from client I just got email that he cannot select his birth year so I bet whether this logic of work is useful).</p>
<p>To set fixed range of years in dropdown you need to use yearRange option. For instance, in my case it is:</p>
<div class="codesnip-container" >
<div class="javascript codesnip" style="font-family:monospace;">$<span class="br0">&#40;</span><span class="st0">&#8216;#datepicker&#8217;</span><span class="br0">&#41;</span>.<span class="me1">datepicker</span><span class="br0">&#40;</span><span class="br0">&#123;</span><br />
&nbsp; &nbsp; changeMonth<span class="sy0">:</span> <span class="kw2">true</span><span class="sy0">,</span><br />
&nbsp; &nbsp; changeYear<span class="sy0">:</span> <span class="kw2">true</span><span class="sy0">,</span><br />
&nbsp; &nbsp; yearRange<span class="sy0">:</span> <span class="st0">&#8217;1910:2000&#8242;</span><br />
<span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</div>
<p>Another interesting thing is that datepicker doesn&#8217;t allow me to select my birth day :) When I select March 1983 it shows days from 1 to 5 only:</p>
<p><img class="aligncenter size-full wp-image-58" title="picture-1" src="http://klalex.com/wp-content/uploads/2009/07/picture-1.png" alt="picture-1" width="225" height="148" /></p>
]]></content:encoded>
			<wfw:commentRss>http://klalex.com/2009/07/jquery-ui-datepicker-for-birth-date-input/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

