<?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: Getting selected values of an checkbox array with JQuery</title>
	<atom:link href="http://blog.burcsade.com/2009/07/01/getting-selected-values-of-an-checkbox-array-with-jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.burcsade.com/2009/07/01/getting-selected-values-of-an-checkbox-array-with-jquery/</link>
	<description>I code, therefore I am</description>
	<lastBuildDate>Wed, 25 Jan 2012 22:01:43 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: james k</title>
		<link>http://blog.burcsade.com/2009/07/01/getting-selected-values-of-an-checkbox-array-with-jquery/comment-page-1/#comment-9400</link>
		<dc:creator>james k</dc:creator>
		<pubDate>Fri, 25 Nov 2011 14:10:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.burcsade.com/?p=47#comment-9400</guid>
		<description>thanks i spent hours trying to figure out why jquery wouldn&#039;t do all of my checkboxes I wish I would have found this first. Here is what i came up with

function test(){
	var boxIds = new Array();
	$(&quot;input:checkbox[id=boxId]:checked&quot;).each(function() {clientIds.push($(this).val());});
	if (boxIds .length == 0) 
    alert(&quot;Please select item(s) to delete.&quot;);
    else
	alert(&quot;boxIds: &quot;+boxIds.join(&#039;&#124;&#039;));
}</description>
		<content:encoded><![CDATA[<p>thanks i spent hours trying to figure out why jquery wouldn&#8217;t do all of my checkboxes I wish I would have found this first. Here is what i came up with</p>
<p>function test(){<br />
	var boxIds = new Array();<br />
	$(&#8221;input:checkbox[id=boxId]:checked&#8221;).each(function() {clientIds.push($(this).val());});<br />
	if (boxIds .length == 0)<br />
    alert(&#8221;Please select item(s) to delete.&#8221;);<br />
    else<br />
	alert(&#8221;boxIds: &#8220;+boxIds.join(&#8217;|'));<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ravi</title>
		<link>http://blog.burcsade.com/2009/07/01/getting-selected-values-of-an-checkbox-array-with-jquery/comment-page-1/#comment-1834</link>
		<dc:creator>ravi</dc:creator>
		<pubDate>Wed, 04 Aug 2010 06:51:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.burcsade.com/?p=47#comment-1834</guid>
		<description>it is not working in ie8</description>
		<content:encoded><![CDATA[<p>it is not working in ie8</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Squidge Web Design Cardiff</title>
		<link>http://blog.burcsade.com/2009/07/01/getting-selected-values-of-an-checkbox-array-with-jquery/comment-page-1/#comment-1436</link>
		<dc:creator>Squidge Web Design Cardiff</dc:creator>
		<pubDate>Thu, 13 May 2010 11:22:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.burcsade.com/?p=47#comment-1436</guid>
		<description>Thank&#039;s for the post - just saved me about an hour of working this out!</description>
		<content:encoded><![CDATA[<p>Thank&#8217;s for the post &#8211; just saved me about an hour of working this out!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Monica Baquerizo</title>
		<link>http://blog.burcsade.com/2009/07/01/getting-selected-values-of-an-checkbox-array-with-jquery/comment-page-1/#comment-1140</link>
		<dc:creator>Monica Baquerizo</dc:creator>
		<pubDate>Fri, 15 Jan 2010 19:00:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.burcsade.com/?p=47#comment-1140</guid>
		<description>Thanks. I send my array by post. The code is:

		var selectedItems = new Array();
		$(&quot;input[@name=&#039;grupo[]&#039;]:checked&quot;).each(function() {selectedItems.push($(this).val());});
		
		$.post( &quot;/c_reportes/consulta_orgXgrupo&quot;, {&#039;data[]&#039;:selectedItems}, function(data){
		
				$(&#039;#output&#039;).html(data); 
		  });</description>
		<content:encoded><![CDATA[<p>Thanks. I send my array by post. The code is:</p>
<p>		var selectedItems = new Array();<br />
		$(&#8221;input[@name='grupo[]&#8216;]:checked&#8221;).each(function() {selectedItems.push($(this).val());});</p>
<p>		$.post( &#8220;/c_reportes/consulta_orgXgrupo&#8221;, {&#8217;data[]&#8216;:selectedItems}, function(data){</p>
<p>				$(&#8217;#output&#8217;).html(data);<br />
		  });</p>
]]></content:encoded>
	</item>
</channel>
</rss>

