<?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: Disable Option&#8217;s In A Select (Dropdown) Element</title>
	<atom:link href="http://www.lattimore.id.au/2005/06/18/disable-options-in-a-select-dropdown-element/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lattimore.id.au/2005/06/18/disable-options-in-a-select-dropdown-element/</link>
	<description>The day to day goings on of our family</description>
	<lastBuildDate>Mon, 30 Jan 2012 20:24:55 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Harry Bailey</title>
		<link>http://www.lattimore.id.au/2005/06/18/disable-options-in-a-select-dropdown-element/comment-page-1/#comment-267279</link>
		<dc:creator>Harry Bailey</dc:creator>
		<pubDate>Tue, 15 Sep 2009 07:50:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.lattimore.id.au/2005/06/18/disable-options-in-a-select-element/#comment-267279</guid>
		<description>I can up with a way to do with with javascript, and more specifically jquery, which turns the options into an empty optgroup element. Works well in all browsers, can&#039;t be styled in ie6 but works and the optgroup jumps to the bottom of the list in opera 9.

http://harrybailey.com/2008/11/disabling-select-options-in-internet-explorer/</description>
		<content:encoded><![CDATA[<p>I can up with a way to do with with javascript, and more specifically jquery, which turns the options into an empty optgroup element. Works well in all browsers, can&#8217;t be styled in ie6 but works and the optgroup jumps to the bottom of the list in opera 9.</p>
<p><a href="http://harrybailey.com/2008/11/disabling-select-options-in-internet-explorer/" rel="nofollow">http://harrybailey.com/2008/11/disabling-select-options-in-internet-explorer/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin</title>
		<link>http://www.lattimore.id.au/2005/06/18/disable-options-in-a-select-dropdown-element/comment-page-1/#comment-262718</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Tue, 04 Aug 2009 19:34:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.lattimore.id.au/2005/06/18/disable-options-in-a-select-element/#comment-262718</guid>
		<description>If using javascript isn&#039;t an issue, a simple solution is to encase the input(s) in a div and set the initial input display to &#039;none&#039;.  For the container div, have the background set to a greyed-out image of the input to create the illusion of a disabled input.  Then when the form element needs to be enabled you can use javascript to set the display to block and container div background to none.  Granted this may not end up looking exactly the same across all browsers, but for me it was close enough to get the job done.</description>
		<content:encoded><![CDATA[<p>If using javascript isn&#8217;t an issue, a simple solution is to encase the input(s) in a div and set the initial input display to &#8216;none&#8217;.  For the container div, have the background set to a greyed-out image of the input to create the illusion of a disabled input.  Then when the form element needs to be enabled you can use javascript to set the display to block and container div background to none.  Granted this may not end up looking exactly the same across all browsers, but for me it was close enough to get the job done.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: deepak</title>
		<link>http://www.lattimore.id.au/2005/06/18/disable-options-in-a-select-dropdown-element/comment-page-1/#comment-242130</link>
		<dc:creator>deepak</dc:creator>
		<pubDate>Wed, 28 Jan 2009 23:34:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.lattimore.id.au/2005/06/18/disable-options-in-a-select-element/#comment-242130</guid>
		<description>i think i tried it and worked on IE6 but one has to do for example id.disabled=true; and it works. please correct me if i am wrong.</description>
		<content:encoded><![CDATA[<p>i think i tried it and worked on IE6 but one has to do for example id.disabled=true; and it works. please correct me if i am wrong.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean</title>
		<link>http://www.lattimore.id.au/2005/06/18/disable-options-in-a-select-dropdown-element/comment-page-1/#comment-232671</link>
		<dc:creator>Sean</dc:creator>
		<pubDate>Wed, 22 Oct 2008 18:34:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.lattimore.id.au/2005/06/18/disable-options-in-a-select-element/#comment-232671</guid>
		<description>Well, IE8 finally fixed it .. too bad we can&#039;t rely on users using IE8 yet.

IE7/8 also kills JavaScript &#039;prompt&#039; ... not that it is related to this discussion, just that I discovered both annoyances while working on the same project.</description>
		<content:encoded><![CDATA[<p>Well, IE8 finally fixed it .. too bad we can&#8217;t rely on users using IE8 yet.</p>
<p>IE7/8 also kills JavaScript &#8216;prompt&#8217; &#8230; not that it is related to this discussion, just that I discovered both annoyances while working on the same project.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PENIX</title>
		<link>http://www.lattimore.id.au/2005/06/18/disable-options-in-a-select-dropdown-element/comment-page-1/#comment-127101</link>
		<dc:creator>PENIX</dc:creator>
		<pubDate>Sat, 01 Dec 2007 00:07:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.lattimore.id.au/2005/06/18/disable-options-in-a-select-element/#comment-127101</guid>
		<description>I can&#039;t believe MS still didn&#039;t fix this in IE7. I finished my application, then decided to test it in IE and it completely broke. I had to redesign the whole update method to get around this.

The work around I came up with is to dynamically regenerate the entire select, omitting the options I would have disabled.</description>
		<content:encoded><![CDATA[<p>I can&#8217;t believe MS still didn&#8217;t fix this in IE7. I finished my application, then decided to test it in IE and it completely broke. I had to redesign the whole update method to get around this.</p>
<p>The work around I came up with is to dynamically regenerate the entire select, omitting the options I would have disabled.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sanjok</title>
		<link>http://www.lattimore.id.au/2005/06/18/disable-options-in-a-select-dropdown-element/comment-page-1/#comment-116400</link>
		<dc:creator>Sanjok</dc:creator>
		<pubDate>Wed, 10 Oct 2007 08:44:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.lattimore.id.au/2005/06/18/disable-options-in-a-select-element/#comment-116400</guid>
		<description>Thank you Joe, very much! Your idea with optiongroup was very useful!</description>
		<content:encoded><![CDATA[<p>Thank you Joe, very much! Your idea with optiongroup was very useful!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Miguel Arroz</title>
		<link>http://www.lattimore.id.au/2005/06/18/disable-options-in-a-select-dropdown-element/comment-page-1/#comment-109899</link>
		<dc:creator>Miguel Arroz</dc:creator>
		<pubDate>Fri, 24 Aug 2007 16:30:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.lattimore.id.au/2005/06/18/disable-options-in-a-select-element/#comment-109899</guid>
		<description>Yes, it also doesn&#039;t work in Safari 2.0.4 (the version in Tiger 10.4.10). It works on the current WebKit (and that means it works on Safari 3.

Unbelievable!</description>
		<content:encoded><![CDATA[<p>Yes, it also doesn&#8217;t work in Safari 2.0.4 (the version in Tiger 10.4.10). It works on the current WebKit (and that means it works on Safari 3.</p>
<p>Unbelievable!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sharath</title>
		<link>http://www.lattimore.id.au/2005/06/18/disable-options-in-a-select-dropdown-element/comment-page-1/#comment-107761</link>
		<dc:creator>Sharath</dc:creator>
		<pubDate>Tue, 31 Jul 2007 18:20:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.lattimore.id.au/2005/06/18/disable-options-in-a-select-element/#comment-107761</guid>
		<description>Thanks, that was useful. I also need to know how to put a label to the select box, like the gmail&#039;s list for actions on selected mails.</description>
		<content:encoded><![CDATA[<p>Thanks, that was useful. I also need to know how to put a label to the select box, like the gmail&#8217;s list for actions on selected mails.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Halibut</title>
		<link>http://www.lattimore.id.au/2005/06/18/disable-options-in-a-select-dropdown-element/comment-page-1/#comment-106859</link>
		<dc:creator>Halibut</dc:creator>
		<pubDate>Tue, 24 Jul 2007 19:19:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.lattimore.id.au/2005/06/18/disable-options-in-a-select-element/#comment-106859</guid>
		<description>Sorry, didn&#039;t have the code commented out appropriately:

@Joe:

The only problem with using  is that any options in a second &#039;optgroup&#039; will not invoke an &#039;onchange&#039; event if the user is navigating using the keyboard (or mousewheel) to select their option. 

For example, if you have:

!form!
!select id=dropdown onchange=javascript:alert(&quot;hello&quot;)!
!optgroup label=optgroup1!
  !option value=first!first!/option!
  !option value=second!second!/option!
!/optgroup!
!optgroup label=optgroup2!
  !option value=thir!&gt;third!/option!
  !option value=fourth!fourth!/option!
!/optgroup!
!/select!
!/form!

...if you focus on the select box, then use the down arrow on your keyboard to scroll through the options (this is with the select box collapsed, mind you), the onchange will only fire with options &#039;first&#039; and &#039;second&#039;.  This is a bug with IE.

This can present problems for those users who use the keyboard to navigate their forms.

Any advice/workarounds for this would be appreciated, btw...</description>
		<content:encoded><![CDATA[<p>Sorry, didn&#8217;t have the code commented out appropriately:</p>
<p>@Joe:</p>
<p>The only problem with using  is that any options in a second &#8216;optgroup&#8217; will not invoke an &#8216;onchange&#8217; event if the user is navigating using the keyboard (or mousewheel) to select their option. </p>
<p>For example, if you have:</p>
<p>!form!<br />
!select id=dropdown onchange=javascript:alert(&#8220;hello&#8221;)!<br />
!optgroup label=optgroup1!<br />
  !option value=first!first!/option!<br />
  !option value=second!second!/option!<br />
!/optgroup!<br />
!optgroup label=optgroup2!<br />
  !option value=thir!&gt;third!/option!<br />
  !option value=fourth!fourth!/option!<br />
!/optgroup!<br />
!/select!<br />
!/form!</p>
<p>&#8230;if you focus on the select box, then use the down arrow on your keyboard to scroll through the options (this is with the select box collapsed, mind you), the onchange will only fire with options &#8216;first&#8217; and &#8216;second&#8217;.  This is a bug with IE.</p>
<p>This can present problems for those users who use the keyboard to navigate their forms.</p>
<p>Any advice/workarounds for this would be appreciated, btw&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Halibut</title>
		<link>http://www.lattimore.id.au/2005/06/18/disable-options-in-a-select-dropdown-element/comment-page-1/#comment-106858</link>
		<dc:creator>Halibut</dc:creator>
		<pubDate>Tue, 24 Jul 2007 19:16:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.lattimore.id.au/2005/06/18/disable-options-in-a-select-element/#comment-106858</guid>
		<description>@Joe:

The only problem with using  is that any options in a second &#039;optgroup&#039; will not invoke an &#039;onchange&#039; event if the user is navigating using the keyboard (or mousewheel) to select their option. 

For example, if you have:




  first
  second


  third
  fourth




...if you focus on the select box, then use the down arrow on your keyboard to scroll through the options (this is with the select box collapsed, mind you), the onchange will only fire with options &#039;first&#039; and &#039;second&#039;.  This is a bug with IE.

This can present problems for those users who use the keyboard to navigate their forms.

Any advice/workarounds for this would be appreciated, btw...</description>
		<content:encoded><![CDATA[<p>@Joe:</p>
<p>The only problem with using  is that any options in a second &#8216;optgroup&#8217; will not invoke an &#8216;onchange&#8217; event if the user is navigating using the keyboard (or mousewheel) to select their option. </p>
<p>For example, if you have:</p>
<p>  first<br />
  second</p>
<p>  third<br />
  fourth</p>
<p>&#8230;if you focus on the select box, then use the down arrow on your keyboard to scroll through the options (this is with the select box collapsed, mind you), the onchange will only fire with options &#8216;first&#8217; and &#8216;second&#8217;.  This is a bug with IE.</p>
<p>This can present problems for those users who use the keyboard to navigate their forms.</p>
<p>Any advice/workarounds for this would be appreciated, btw&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

