<?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>程序如此灵动！ &#187; select</title>
	<atom:link href="http://newsn.net/tag/select/feed" rel="self" type="application/rss+xml" />
	<link>http://newsn.net</link>
	<description>苏南的网络日记本本  O(∩_∩)O  哈哈~</description>
	<lastBuildDate>Mon, 13 Jul 2009 02:59:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>在select中使用optgroup打造一个不能被选择的option</title>
		<link>http://newsn.net/20090522/463.html</link>
		<comments>http://newsn.net/20090522/463.html#comments</comments>
		<pubDate>Fri, 22 May 2009 07:05:39 +0000</pubDate>
		<dc:creator>苏南</dc:creator>
				<category><![CDATA[IT.IT]]></category>
		<category><![CDATA[optgroup]]></category>
		<category><![CDATA[option]]></category>
		<category><![CDATA[select]]></category>

		<guid isPermaLink="false">http://newsn.net/20090522/463.html</guid>
		<description><![CDATA[用phpmyadmin很久很久了，只到今天我才想看看为啥他的数据库整理里面的语言选项有不能选择的。难道这是个特殊的select？通过查看源代码，我发现了这个特殊的optgrounp选项。貌似以前从来没有见过，很是陌生的说。不过看起来也不是很难用。具体如下：
 
一、效果截图        
部分代码：
&#60;select&#62;
  &#60;option value=&#34;&#34;&#62;请选择&#60;/option&#62;
  &#60;optgroup label=&#34;armscii8&#34; title=&#34;&#34;&#62;
    &#60;option value=&#34;armscii8_bin&#34; title=&#34;&#34;&#62;armscii8_bin&#60;/option&#62;
    &#60;option value=&#34;armscii8_general_ci&#34; title=&#34;&#34;&#62;armscii8_general_ci&#60;/option&#62;
  &#60;/optgroup&#62;
&#60;/select&#62;

  二、一点点收获
      这个optgroup可以包含option哦，并且可以使option和它并列的说，如上边的那个“请选择”。并且由那个optgroup的label所显示出来的文字是不可选择的。想点也没有办法点击。貌似效果不错的说。
PS：我可不知道如何用Cakephp的formhelper如何输出这样的select。hoho。
]]></description>
		<wfw:commentRss>http://newsn.net/20090522/463.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
