<?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: :checkbox Selector</title>
	<atom:link href="http://api.jquery.com/checkbox-selector/feed/" rel="self" type="application/rss+xml" />
	<link>http://api.jquery.com/checkbox-selector/</link>
	<description>jQuery API Reference</description>
	<lastBuildDate>Fri, 19 Aug 2011 09:06:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: AUX00</title>
		<link>http://api.jquery.com/checkbox-selector/comment-page-1/#comment-8675</link>
		<dc:creator>AUX00</dc:creator>
		<pubDate>Fri, 28 Jan 2011 04:11:17 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=641#comment-8675</guid>
		<description>I have a checkbox that selects all checkboxes on the form. I can see the checkboxes as checked when I do this, but the onclick events next to the checkboxes do not fire??&lt;br&gt;&lt;br&gt;</description>
		<content:encoded><![CDATA[<p>I have a checkbox that selects all checkboxes on the form. I can see the checkboxes as checked when I do this, but the onclick events next to the checkboxes do not fire??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rcarrier</title>
		<link>http://api.jquery.com/checkbox-selector/comment-page-1/#comment-8020</link>
		<dc:creator>rcarrier</dc:creator>
		<pubDate>Fri, 24 Dec 2010 02:35:04 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=641#comment-8020</guid>
		<description>qarluq, wrap your checkbox labels like this:&lt;br&gt;&lt;input class=&quot;checkbox&quot; id=&quot;1&quot; name=&quot;attribute[]&quot; type=&quot;checkbox&quot; value=&quot;one&quot;&gt;&lt;label for=&quot;1&quot; id=&quot;l1&quot;&gt;Sunday&lt;/label&gt;&lt;br&gt;&lt;input class=&quot;checkbox&quot; id=&quot;2&quot; name=&quot;attribute[]&quot; type=&quot;checkbox&quot; value=&quot;two&quot;&gt;&lt;label for=&quot;2&quot; id=&quot;l2&quot;&gt;Monday&lt;/label&gt;&lt;br&gt;&lt;br&gt;// Use this code to get the values of all checked checkboxes&lt;br&gt;var attributes = [];&lt;br&gt;$(&#039;input:checkbox[name=&quot;attribute[]&quot;]:checked&#039;).each(function(index) { attributes.push($(this).val());});&lt;br&gt;&lt;br&gt;//Use this code to get text of all checked chexkboxes&lt;br&gt;var attributes_names = [];&lt;br&gt;$(&#039;input:checkbox[name=&quot;attribute[]&quot;]:checked&#039;).each(function(index) { attributes_names.push($(this).next(&quot;label&quot;).text());});&lt;br&gt;&lt;br&gt;//To set the text of the checkbox label&lt;br&gt;&lt;br&gt;$(&quot;#_your_id_&quot;).next(&quot;label&quot;).text( &quot;_your_new_text_here_&quot; );&lt;br&gt;&lt;br&gt;Example:&lt;br&gt;&lt;br&gt;$(&quot;#1&quot;).next(&quot;label&quot;).text( &quot;My favorite day!&quot; );&lt;br&gt;&lt;br&gt;Hope this helps. The reason you can not get the text next to your checkbox with your previous markup is that it is not part of the input element. It is a text node separate from it in the DOM. Wrapping it in a label tag makes it easy for us to access it with the .next(&quot;label&quot;) method.</description>
		<content:encoded><![CDATA[<p>qarluq, wrap your checkbox labels like this:<br />&lt;input class=&#8221;checkbox&#8221; id=&#8221;1&#8243; name=&#8221;attribute[]&#8221; type=&#8221;checkbox&#8221; value=&#8221;one&#8221;&gt;&lt;label for=&#8221;1&#8243; id=&#8221;l1&#8243;&gt;Sunday&lt;/label&gt;<br />&lt;input class=&#8221;checkbox&#8221; id=&#8221;2&#8243; name=&#8221;attribute[]&#8221; type=&#8221;checkbox&#8221; value=&#8221;two&#8221;&gt;&lt;label for=&#8221;2&#8243; id=&#8221;l2&#8243;&gt;Monday&lt;/label&gt;</p>
<p>// Use this code to get the values of all checked checkboxes<br />var attributes = [];<br />$(&#39;input:checkbox[name="attribute[]&#8220;]:checked&#39;).each(function(index) { attributes.push($(this).val());});</p>
<p>//Use this code to get text of all checked chexkboxes<br />var attributes_names = [];<br />$(&#39;input:checkbox[name="attribute[]&#8220;]:checked&#39;).each(function(index) { attributes_names.push($(this).next(&#8220;label&#8221;).text());});</p>
<p>//To set the text of the checkbox label</p>
<p>$(&#8220;#_your_id_&#8221;).next(&#8220;label&#8221;).text( &#8220;_your_new_text_here_&#8221; );</p>
<p>Example:</p>
<p>$(&#8220;#1&#8243;).next(&#8220;label&#8221;).text( &#8220;My favorite day!&#8221; );</p>
<p>Hope this helps. The reason you can not get the text next to your checkbox with your previous markup is that it is not part of the input element. It is a text node separate from it in the DOM. Wrapping it in a label tag makes it easy for us to access it with the .next(&#8220;label&#8221;) method.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rcarrier</title>
		<link>http://api.jquery.com/checkbox-selector/comment-page-1/#comment-7746</link>
		<dc:creator>rcarrier</dc:creator>
		<pubDate>Thu, 23 Dec 2010 18:35:04 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=641#comment-7746</guid>
		<description>qarluq, wrap your checkbox labels like this:&lt;br&gt;&lt;input class=&quot;checkbox&quot; id=&quot;1&quot; name=&quot;attribute[]&quot; type=&quot;checkbox&quot; value=&quot;one&quot;&gt;&lt;label for=&quot;1&quot; id=&quot;l1&quot;&gt;Sunday&lt;/label&gt;&lt;br&gt;&lt;input class=&quot;checkbox&quot; id=&quot;2&quot; name=&quot;attribute[]&quot; type=&quot;checkbox&quot; value=&quot;two&quot;&gt;&lt;label for=&quot;2&quot; id=&quot;l2&quot;&gt;Monday&lt;/label&gt;&lt;br&gt;&lt;br&gt;// Use this code to get the values of all checked checkboxes&lt;br&gt;var attributes = [];&lt;br&gt;$(&#039;input:checkbox[name=&quot;attribute[]&quot;]:checked&#039;).each(function(index) { attributes.push($(this).val());});&lt;br&gt;&lt;br&gt;//Use this code to get text of all checked chexkboxes&lt;br&gt;var attribute_names = [];&lt;br&gt;$(&#039;input:checkbox[name=&quot;attribute[]&quot;]:checked&#039;).each(function(index) { attributes_names.push($(this).next(&quot;label&quot;).text());});&lt;br&gt;&lt;br&gt;//To set the text of the checkbox label&lt;br&gt;&lt;br&gt;$(&quot;#_your_id_&quot;).next(&quot;label&quot;).text( &quot;_your_new_text_here_&quot; );&lt;br&gt;&lt;br&gt;Example:&lt;br&gt;&lt;br&gt;$(&quot;#1&quot;).next(&quot;label&quot;).text( &quot;My favorite day!&quot; );&lt;br&gt;&lt;br&gt;Hope this helps. The reason you can not get the text next to your checkbox with your previous markup is that it is not part of the input element. It is text node separate from it in the DOM. Wrapping it in a label tag makes it easy for us to access it with the .next(&quot;label&quot;) method.</description>
		<content:encoded><![CDATA[<p>qarluq, wrap your checkbox labels like this:<br />&lt;input class=&#8221;checkbox&#8221; id=&#8221;1&#8243; name=&#8221;attribute[]&#8221; type=&#8221;checkbox&#8221; value=&#8221;one&#8221;&gt;&lt;label for=&#8221;1&#8243; id=&#8221;l1&#8243;&gt;Sunday&lt;/label&gt;<br />&lt;input class=&#8221;checkbox&#8221; id=&#8221;2&#8243; name=&#8221;attribute[]&#8221; type=&#8221;checkbox&#8221; value=&#8221;two&#8221;&gt;&lt;label for=&#8221;2&#8243; id=&#8221;l2&#8243;&gt;Monday&lt;/label&gt;</p>
<p>// Use this code to get the values of all checked checkboxes<br />var attributes = [];<br />$(&#39;input:checkbox[name="attribute[]&#8220;]:checked&#39;).each(function(index) { attributes.push($(this).val());});</p>
<p>//Use this code to get text of all checked chexkboxes<br />var attribute_names = [];<br />$(&#39;input:checkbox[name="attribute[]&#8220;]:checked&#39;).each(function(index) { attributes_names.push($(this).next(&#8220;label&#8221;).text());});</p>
<p>//To set the text of the checkbox label</p>
<p>$(&#8220;#_your_id_&#8221;).next(&#8220;label&#8221;).text( &#8220;_your_new_text_here_&#8221; );</p>
<p>Example:</p>
<p>$(&#8220;#1&#8243;).next(&#8220;label&#8221;).text( &#8220;My favorite day!&#8221; );</p>
<p>Hope this helps. The reason you can not get the text next to your checkbox with your previous markup is that it is not part of the input element. It is text node separate from it in the DOM. Wrapping it in a label tag makes it easy for us to access it with the .next(&#8220;label&#8221;) method.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Max</title>
		<link>http://api.jquery.com/checkbox-selector/comment-page-1/#comment-7676</link>
		<dc:creator>Max</dc:creator>
		<pubDate>Mon, 20 Dec 2010 07:08:43 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=641#comment-7676</guid>
		<description>You should use radio in this case. Checkboxes are primarly for selecting multiple options. If only one option can be selected at the same time, you should use radiobuttons.</description>
		<content:encoded><![CDATA[<p>You should use radio in this case. Checkboxes are primarly for selecting multiple options. If only one option can be selected at the same time, you should use radiobuttons.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: qarluq</title>
		<link>http://api.jquery.com/checkbox-selector/comment-page-1/#comment-7480</link>
		<dc:creator>qarluq</dc:creator>
		<pubDate>Sat, 11 Dec 2010 14:57:08 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=641#comment-7480</guid>
		<description>Hi,&lt;br&gt;I have two checkbox elements. I want to get the text value (&quot;Sonday&quot;, &quot;Monday&quot;) of these checkboxes . And I want to change them with some other values (&quot;tuesday&quot;, Wednesday&quot;). I do not know how to get these two values first. I tried .val() and .text() methods, they did not work. Do you any idea about how to get them and replace them with some other values?&lt;br&gt;&lt;form&gt;&lt;br&gt;&lt;input class=&quot;checkbox&quot; id=&quot;1&quot; name=&quot;attribute&quot; type=&quot;checkbox&quot; value=&quot;one&quot;&gt;Sunday&lt;br&gt;&lt;input class=&quot;checkbox&quot; id=&quot;2&quot; name=&quot;attribute&quot; type=&quot;checkbox&quot; value=&quot;two &quot;&gt;Monday&lt;br&gt; &lt;/form&gt;</description>
		<content:encoded><![CDATA[<p>Hi,<br />I have two checkbox elements. I want to get the text value (&#8220;Sonday&#8221;, &#8220;Monday&#8221;) of these checkboxes . And I want to change them with some other values (&#8220;tuesday&#8221;, Wednesday&#8221;). I do not know how to get these two values first. I tried .val() and .text() methods, they did not work. Do you any idea about how to get them and replace them with some other values?<br />&lt;form&gt;<br />&lt;input class=&#8221;checkbox&#8221; id=&#8221;1&#8243; name=&#8221;attribute&#8221; type=&#8221;checkbox&#8221; value=&#8221;one&#8221;&gt;Sunday<br />&lt;input class=&#8221;checkbox&#8221; id=&#8221;2&#8243; name=&#8221;attribute&#8221; type=&#8221;checkbox&#8221; value=&#8221;two &#8220;&gt;Monday<br /> &lt;/form&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Клюшин Герман</title>
		<link>http://api.jquery.com/checkbox-selector/comment-page-1/#comment-5733</link>
		<dc:creator>Клюшин Герман</dc:creator>
		<pubDate>Mon, 13 Sep 2010 08:47:37 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=641#comment-5733</guid>
		<description>$(&quot;#other&quot;).click(function () &lt;br&gt;How about other methods of input (keyboard)? &lt;br&gt;Maybe something like onChange event handler?</description>
		<content:encoded><![CDATA[<p>$(&#8220;#other&#8221;).click(function () <br />How about other methods of input (keyboard)? <br />Maybe something like onChange event handler?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jzalums</title>
		<link>http://api.jquery.com/checkbox-selector/comment-page-1/#comment-5575</link>
		<dc:creator>jzalums</dc:creator>
		<pubDate>Thu, 26 Aug 2010 18:52:15 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=641#comment-5575</guid>
		<description>Check if input field is checked.&lt;br&gt;&lt;br&gt;alert ( $(&quot;input&quot;).is(&#039;:checked&#039;) );&lt;br&gt;</description>
		<content:encoded><![CDATA[<p>Check if input field is checked.</p>
<p>alert ( $(&#8220;input&#8221;).is(&#39;:checked&#39;) );</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marco Lazzeri</title>
		<link>http://api.jquery.com/checkbox-selector/comment-page-1/#comment-3997</link>
		<dc:creator>Marco Lazzeri</dc:creator>
		<pubDate>Tue, 06 Jul 2010 10:55:34 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=641#comment-3997</guid>
		<description>Thanks Adam! I&#039;ve experienced the same and replacing them with input:checkbox fixed the issue.</description>
		<content:encoded><![CDATA[<p>Thanks Adam! I&#39;ve experienced the same and replacing them with input:checkbox fixed the issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Brill</title>
		<link>http://api.jquery.com/checkbox-selector/comment-page-1/#comment-3707</link>
		<dc:creator>Adam Brill</dc:creator>
		<pubDate>Fri, 18 Jun 2010 16:36:54 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=641#comment-3707</guid>
		<description>I have run into an issue where IE errors running a selector &quot;form :checkbox&quot;. If this happens for you, change it to &quot;form input:checkbox&quot; and it works.</description>
		<content:encoded><![CDATA[<p>I have run into an issue where IE errors running a selector &#8220;form :checkbox&#8221;. If this happens for you, change it to &#8220;form input:checkbox&#8221; and it works.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abhishek</title>
		<link>http://api.jquery.com/checkbox-selector/comment-page-1/#comment-11591</link>
		<dc:creator>Abhishek</dc:creator>
		<pubDate>Fri, 11 Jun 2010 04:33:00 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=641#comment-11591</guid>
		<description>I think that should work if you try to do hide and show on the click of that check box

$(document).ready(function() {
$(&quot;#cbStatus&quot;).click(function () {
if ($(&#039;#cbStatus&#039;).checked == false) {
HideColumn(&#039;Status&#039;,false);
} else {
HideColumn(&#039;Status&#039;,true);
}
});
}); </description>
		<content:encoded><![CDATA[<p>I think that should work if you try to do hide and show on the click of that check box</p>
<p>$(document).ready(function() {<br />
$(&#8220;#cbStatus&#8221;).click(function () {<br />
if ($(&#8216;#cbStatus&#8217;).checked == false) {<br />
HideColumn(&#8216;Status&#8217;,false);<br />
} else {<br />
HideColumn(&#8216;Status&#8217;,true);<br />
}<br />
});<br />
});</p>
]]></content:encoded>
	</item>
</channel>
</rss>

