<?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>《json2select》的评论</title>
	<atom:link href="http://shawphy.com/2008/12/json2select.html/feed" rel="self" type="application/rss+xml" />
	<link>http://shawphy.com/2008/12/json2select.html</link>
	<description>关注HTML,CSS,JavaScript,jQuery等前端开发</description>
	<lastBuildDate>Mon, 07 May 2012 10:20:22 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>作者：boy</title>
		<link>http://shawphy.com/2008/12/json2select.html/comment-page-1#comment-4507</link>
		<dc:creator>boy</dc:creator>
		<pubDate>Mon, 18 Apr 2011 08:52:18 +0000</pubDate>
		<guid isPermaLink="false">http://shawphy.com/2008/12/json2select.html#comment-4507</guid>
		<description>请问怎么获取最终选定的值？</description>
		<content:encoded><![CDATA[<p>请问怎么获取最终选定的值？</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：Shawphy</title>
		<link>http://shawphy.com/2008/12/json2select.html/comment-page-1#comment-4435</link>
		<dc:creator>Shawphy</dc:creator>
		<pubDate>Wed, 15 Dec 2010 08:29:39 +0000</pubDate>
		<guid isPermaLink="false">http://shawphy.com/2008/12/json2select.html#comment-4435</guid>
		<description>如果只要两级的话，那么数据也需要只有两级。目前这个东西是跟数据紧密结合的。</description>
		<content:encoded><![CDATA[<p>如果只要两级的话，那么数据也需要只有两级。目前这个东西是跟数据紧密结合的。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：我我我</title>
		<link>http://shawphy.com/2008/12/json2select.html/comment-page-1#comment-4434</link>
		<dc:creator>我我我</dc:creator>
		<pubDate>Wed, 15 Dec 2010 08:08:00 +0000</pubDate>
		<guid isPermaLink="false">http://shawphy.com/2008/12/json2select.html#comment-4434</guid>
		<description>默认也是2级，但是只改deep=2的话页面初始是3级</description>
		<content:encoded><![CDATA[<p>默认也是2级，但是只改deep=2的话页面初始是3级</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：我我我</title>
		<link>http://shawphy.com/2008/12/json2select.html/comment-page-1#comment-4433</link>
		<dc:creator>我我我</dc:creator>
		<pubDate>Wed, 15 Dec 2010 07:56:54 +0000</pubDate>
		<guid isPermaLink="false">http://shawphy.com/2008/12/json2select.html#comment-4433</guid>
		<description>如何控制联动的级数。如果我只要2级联动就够了的话</description>
		<content:encoded><![CDATA[<p>如何控制联动的级数。如果我只要2级联动就够了的话</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：Shawphy</title>
		<link>http://shawphy.com/2008/12/json2select.html/comment-page-1#comment-4429</link>
		<dc:creator>Shawphy</dc:creator>
		<pubDate>Tue, 07 Dec 2010 08:50:38 +0000</pubDate>
		<guid isPermaLink="false">http://shawphy.com/2008/12/json2select.html#comment-4429</guid>
		<description>什么ID啊？</description>
		<content:encoded><![CDATA[<p>什么ID啊？</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：羽翼</title>
		<link>http://shawphy.com/2008/12/json2select.html/comment-page-1#comment-4426</link>
		<dc:creator>羽翼</dc:creator>
		<pubDate>Mon, 06 Dec 2010 16:41:25 +0000</pubDate>
		<guid isPermaLink="false">http://shawphy.com/2008/12/json2select.html#comment-4426</guid>
		<description>为什么没有ID 啊  真悲剧</description>
		<content:encoded><![CDATA[<p>为什么没有ID 啊  真悲剧</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：JQuery无限联动的下拉框插件（选城市） &#124; Fatkun&#39;s Blog</title>
		<link>http://shawphy.com/2008/12/json2select.html/comment-page-1#comment-4244</link>
		<dc:creator>JQuery无限联动的下拉框插件（选城市） &#124; Fatkun&#39;s Blog</dc:creator>
		<pubDate>Fri, 28 May 2010 08:34:50 +0000</pubDate>
		<guid isPermaLink="false">http://shawphy.com/2008/12/json2select.html#comment-4244</guid>
		<description>[...] HTML转义关于Fatkun&#039;s Blog胡言乱语~不说谎，不打架，好孩子！ function doApi(obj) { var taotao = document.getElementById(&quot;taotao&quot;); if (obj.ret != 0) { taotao.innerHTML = &quot;看,有灰机...QQ签名加载失败鸟&quot;; return; } taotao.innerHTML = obj.posts[0].cn; }  JQuery无限联动的下拉框插件（选城市） 28 五, 2010 in 网页前端 by fatkun经常可能会用到一些需要联动的下拉框，包括选择城市之类的。可能是二级联动，三级联动等等~JQuery中有个双联动的doubleselect，不过有时我们需要很多个下拉框一起关联。发现一个国内的jquery插件，感觉不错，中国地名压缩后最小可以达到29KB。以后很有可能会用到，记录下来先博客介绍：http://shawphy.com/2008/12/json2select.html例子：http://shawphy.googlecode.com/svn/javascript/json2select/json2select.html全国城市数据：http://shawphy.com/2009/07/json2select-data-of-city.html压缩后全国城市数据：http://www.cnweb.org/down/areajson/  0&#160;Commentstagged json, option, select, 三级联动Leave a Reply 点击这里取消回复 Name (required) Mail (will not be published) (required) Website [...]</description>
		<content:encoded><![CDATA[<p>[...] HTML转义关于Fatkun&#39;s Blog胡言乱语~不说谎，不打架，好孩子！ function doApi(obj) { var taotao = document.getElementById(&quot;taotao&quot;); if (obj.ret != 0) { taotao.innerHTML = &quot;看,有灰机&#8230;QQ签名加载失败鸟&quot;; return; } taotao.innerHTML = obj.posts[0].cn; }  JQuery无限联动的下拉框插件（选城市） 28 五, 2010 in 网页前端 by fatkun经常可能会用到一些需要联动的下拉框，包括选择城市之类的。可能是二级联动，三级联动等等~JQuery中有个双联动的doubleselect，不过有时我们需要很多个下拉框一起关联。发现一个国内的jquery插件，感觉不错，中国地名压缩后最小可以达到29KB。以后很有可能会用到，记录下来先博客介绍：http://shawphy.com/2008/12/json2select.html例子：http://shawphy.googlecode.com/svn/javascript/json2select/json2select.html全国城市数据：http://shawphy.com/2009/07/json2select-data-of-city.html压缩后全国城市数据：http://www.cnweb.org/down/areajson/  0&nbsp;Commentstagged json, option, select, 三级联动Leave a Reply 点击这里取消回复 Name (required) Mail (will not be published) (required) Website [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：Noker</title>
		<link>http://shawphy.com/2008/12/json2select.html/comment-page-1#comment-4243</link>
		<dc:creator>Noker</dc:creator>
		<pubDate>Wed, 26 May 2010 02:23:17 +0000</pubDate>
		<guid isPermaLink="false">http://shawphy.com/2008/12/json2select.html#comment-4243</guid>
		<description>昨天有幸终于用上这个插件了，发现些实际中可能遇到的问题，所以有些地方小改了下，你看看合理否：
$(&quot;[name=&quot;+name+deep+&quot;]&quot;,_this).nextAll().remove();
改为：
$(&quot;[name=&quot;+name+deep+&quot;]&quot;,_this).nextAll(&quot;select&quot;).remove();
主要是避免级联选单后面放东西的时候，后面的无关东西也遭移除。

$(this).val()&amp;&amp;_this.json2select($(&quot;:selected&quot;,this).data(&quot;s&quot;),dftFlag?dft.slice(1):[],name,$(this).attr(&quot;name&quot;).match(/\d+/)[0]);
改为：
$(this).val()?_this.json2select($(&quot;:selected&quot;,this).data(&quot;s&quot;),dftFlag?dft.slice(1):[],name,$(this).attr(&quot;name&quot;).match(/\d+/)[0]):$(this).nextAll(&quot;select&quot;).remove();
主要是解决当一级select改为“请选择”时，后面select依然存在的逻辑问题，改后某级的select选为“请选择”后后续的select一律移除。</description>
		<content:encoded><![CDATA[<p>昨天有幸终于用上这个插件了，发现些实际中可能遇到的问题，所以有些地方小改了下，你看看合理否：<br />
$(“[name="+name+deep+"]“,_this).nextAll().remove();<br />
改为：<br />
$(“[name="+name+deep+"]“,_this).nextAll(“select”).remove();<br />
主要是避免级联选单后面放东西的时候，后面的无关东西也遭移除。</p>
<p>$(this).val()&amp;&amp;_this.json2select($(“:selected”,this).data(“s”),dftFlag?dft.slice(1):[],name,$(this).attr(“name”).match(/\d+/)[0]);<br />
改为：<br />
$(this).val()?_this.json2select($(“:selected”,this).data(“s”),dftFlag?dft.slice(1):[],name,$(this).attr(“name”).match(/\d+/)[0]):$(this).nextAll(“select”).remove();<br />
主要是解决当一级select改为“请选择”时，后面select依然存在的逻辑问题，改后某级的select选为“请选择”后后续的select一律移除。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：Shawphy</title>
		<link>http://shawphy.com/2008/12/json2select.html/comment-page-1#comment-4016</link>
		<dc:creator>Shawphy</dc:creator>
		<pubDate>Sun, 07 Mar 2010 08:07:54 +0000</pubDate>
		<guid isPermaLink="false">http://shawphy.com/2008/12/json2select.html#comment-4016</guid>
		<description>非常感谢你的反馈，看起来确实有这个问题</description>
		<content:encoded><![CDATA[<p>非常感谢你的反馈，看起来确实有这个问题</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：mikokuu</title>
		<link>http://shawphy.com/2008/12/json2select.html/comment-page-1#comment-3567</link>
		<dc:creator>mikokuu</dc:creator>
		<pubDate>Tue, 23 Feb 2010 08:02:29 +0000</pubDate>
		<guid isPermaLink="false">http://shawphy.com/2008/12/json2select.html#comment-3567</guid>
		<description>你好喔, 你这个工具偶一直在用, 很好用! 很感谢!
但是之前使用时发现好像有点小问题, 在设置有默认值的时候, 如果直接把第一级改变成&quot;请选择&quot;, 后面的几个下拉框也不会被清空. 需要在slct.change里的最前面加上一句$(this).nextAll().remove();才可以解决问题.</description>
		<content:encoded><![CDATA[<p>你好喔, 你这个工具偶一直在用, 很好用! 很感谢!<br />
但是之前使用时发现好像有点小问题, 在设置有默认值的时候, 如果直接把第一级改变成”请选择”, 后面的几个下拉框也不会被清空. 需要在slct.change里的最前面加上一句$(this).nextAll().remove();才可以解决问题.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

