<?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; Jquery</title>
	<atom:link href="http://www.henghome.com/archives/category/jquery/feed" rel="self" type="application/rss+xml" />
	<link>http://www.henghome.com</link>
	<description>www.henghome.com</description>
	<lastBuildDate>Sun, 11 Dec 2011 12:31:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>jquery实现checkbox全选、取消全选</title>
		<link>http://www.henghome.com/archives/112</link>
		<comments>http://www.henghome.com/archives/112#comments</comments>
		<pubDate>Sun, 18 May 2008 11:19:55 +0000</pubDate>
		<dc:creator>小 恒</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Jquery]]></category>

		<guid isPermaLink="false">http://www.henghome.com/?p=112</guid>
		<description><![CDATA[&#60;input type="checkbox" name="checkbox_name[]" id="checkbox_name_1" /&#62;1&#60;br /&#62; &#60;input type="checkbox" name="checkbox_name[]" id="checkbox_name_2" /&#62;2&#60;br /&#62; &#60;input type="checkbox" name="checkbox_name[]" id="checkbox_name_3" /&#62;3&#60;br /&#62; &#60;input type="checkbox" name="checkbox_name[]" id="checkbox_name_4" /&#62;4&#60;br /&#62; &#60;input type="checkbox" name="checkedAll" id="checkedAll"/&#62;全选/取消全选 演示地址 &#60;!-- JiaThis Button BEGIN --&#62; &#60;style type=&#34;text/css&#34;&#62; #ckepop a:hover { color:red; background-color:#0063DC; } &#60;/style&#62; &#60;div id=&#34;ckepop&#34;&#62; &#60;a href=&#34;http://www.jiathis.com/share/&#34; class=&#34;jiathis_txt&#34; target=&#34;_blank&#34;&#62;分享到：&#60;/a&#62; &#60;a class=&#34;jiathis_button_tqq&#34;&#62;腾讯微博&#60;/a&#62; &#60;a class=&#34;jiathis_button_tsina&#34;&#62;新浪微博&#60;/a&#62; &#60;a class=&#34;jiathis_button_qzone&#34;&#62;QQ空间&#60;/a&#62; [...]]]></description>
			<content:encoded><![CDATA[<p><code>&lt;input type="checkbox" name="checkbox_name[]" id="checkbox_name_1" /&gt;1&lt;br /&gt;<br />
&lt;input type="checkbox" name="checkbox_name[]" id="checkbox_name_2" /&gt;2&lt;br /&gt;<br />
&lt;input type="checkbox" name="checkbox_name[]" id="checkbox_name_3" /&gt;3&lt;br /&gt;<br />
&lt;input type="checkbox" name="checkbox_name[]" id="checkbox_name_4" /&gt;4&lt;br /&gt;<br />
&lt;input type="checkbox" name="checkedAll" id="checkedAll"/&gt;全选/取消全选</code><br />
<a href="http://www.henghome.cn/demo/jquery-checkbox.html" target="_blank">演示地址</a><br />
<code lang="javascript"><br />
<script type="text/javascript"><!--
$(function() {
 $("#checkedAll").click(function() { 
 if ($(this).attr("checked") == true) { // 全选
  $("input[@name='checkbox_name[]']").each(function() {
  $(this).attr("checked", true);
  });
 } else { // 取消全选
  $("input[@name='checkbox_name[]']").each(function() {
  $(this).attr("checked", false);
  });
 }
 });
});
// --></script><br />
</code></p>
<div style=float:left>&lt;!-- JiaThis Button BEGIN --&gt;
&lt;style type=&quot;text/css&quot;&gt;
#ckepop a:hover {
    color:red;
    background-color:#0063DC;
}
&lt;/style&gt;
&lt;div id=&quot;ckepop&quot;&gt;
    &lt;a href=&quot;http://www.jiathis.com/share/&quot; class=&quot;jiathis_txt&quot; target=&quot;_blank&quot;&gt;分享到：&lt;/a&gt;
	&lt;a class=&quot;jiathis_button_tqq&quot;&gt;腾讯微博&lt;/a&gt;
	&lt;a class=&quot;jiathis_button_tsina&quot;&gt;新浪微博&lt;/a&gt;
	&lt;a class=&quot;jiathis_button_qzone&quot;&gt;QQ空间&lt;/a&gt;
	&lt;a class=&quot;jiathis_button_hi&quot;&gt;百度空间&lt;/a&gt;
	&lt;a class=&quot;jiathis_button_kaixin001&quot;&gt;开心网&lt;/a&gt;
	&lt;a class=&quot;jiathis_button_renren&quot;&gt;人人网&lt;/a&gt;
	&lt;a class=&quot;jiathis_button_xiaoyou&quot;&gt;QQ校友&lt;/a&gt;
	&lt;a href=&quot;http://www.jiathis.com/share/?uid=89488&quot; class=&quot;jiathis jiathis_txt jtico jtico_jiathis&quot; target=&quot;_blank&quot;&gt;更多...&lt;/a&gt;
&lt;/div&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://v2.jiathis.com/code/jia.js?uid=89488&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;
&lt;!-- JiaThis Button END --&gt;</div>]]></content:encoded>
			<wfw:commentRss>http://www.henghome.com/archives/112/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
