<?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>Jay Knight &#187; html</title>
	<atom:link href="http://jk3.us/tag/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://jk3.us</link>
	<description>...or something along those lines</description>
	<lastBuildDate>Mon, 31 Oct 2011 21:22:03 +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>Read-only select elements in HTML</title>
		<link>http://jk3.us/2006/07/06/read-only-select-elements-in-html/</link>
		<comments>http://jk3.us/2006/07/06/read-only-select-elements-in-html/#comments</comments>
		<pubDate>Thu, 06 Jul 2006 22:11:55 +0000</pubDate>
		<dc:creator>Jay</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://jk3.us/2006/07/06/read-only-select-elements-in-html/</guid>
		<description><![CDATA[In HTML 4, form elements can be defined as &#8220;readonly&#8221; so that the user can&#8217;t modify the value. However, you&#8217;ll notice that select controls (the drop-down lists) do not support the readonly attribute, just input and textarea controls. Can anyone &#8230; <a href="http://jk3.us/2006/07/06/read-only-select-elements-in-html/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>In HTML 4, form elements can be defined as &#8220;<a title="Read-only Controls" href="http://www.w3.org/TR/1998/REC-html40-19980424/interact/forms.html#h-17.12.2">readonly</a>&#8221; so that the user can&#8217;t modify the value. However, you&#8217;ll notice that select controls (the drop-down lists) do not support the readonly attribute, just input and textarea controls. Can anyone out there please explain the rational behind this? It seems perfectly reasonable to have a readonly select box, especially if it is put into that state by a script.</p>
<p>I think my workaround will consist of making them disabled so they cannot be editted, and enabling them via a script right before the form submits so that the values for those controls are submitted (disabled controls are not <a title="Successful controls" href="http://www.w3.org/TR/1998/REC-html40-19980424/interact/forms.html#h-17.12.2">successful</a> and are not &#8220;valid for submission&#8221;).</p>
<p>If anyone can explain why selects can&#8217;t be made readonly, or give me a better solution for simulating readonly-ness, please share.</p>

]]></content:encoded>
			<wfw:commentRss>http://jk3.us/2006/07/06/read-only-select-elements-in-html/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

