<?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: JavaScript &#8211; Select all checkboxes</title>
	<atom:link href="http://www.easywayserver.com/blog/javascript-select-all-checkboxes/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.easywayserver.com/blog/javascript-select-all-checkboxes/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sun, 15 Jan 2012 15:24:27 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jesu</title>
		<link>http://www.easywayserver.com/blog/javascript-select-all-checkboxes/comment-page-1/#comment-22580</link>
		<dc:creator>Jesu</dc:creator>
		<pubDate>Fri, 01 Jul 2011 12:29:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.easywayserver.com/blog/?p=15#comment-22580</guid>
		<description>Thanks.. Its very useful</description>
		<content:encoded><![CDATA[<p>Thanks.. Its very useful</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jesi</title>
		<link>http://www.easywayserver.com/blog/javascript-select-all-checkboxes/comment-page-1/#comment-22541</link>
		<dc:creator>Jesi</dc:creator>
		<pubDate>Thu, 30 Jun 2011 10:18:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.easywayserver.com/blog/?p=15#comment-22541</guid>
		<description>Thanks a lot.. We can Use thz coding for check &amp; Uncheck ..Try it .. Gud Luck Frds

&lt;SCRIPT LANGUAGE=\&quot;JavaScript\&quot;&gt;
function checkAll(field)
{
for (i = 0; i &lt; field.length; i++)
	field[i].checked = true ;
}

function uncheckAll(field)
{
for (i = 0; i &lt; field.length; i++)
	field[i].checked = false ;
}
&lt;/script&gt;


Here is the HTML:

&lt;form name=\&quot;myform\&quot; action=\&quot;checkboxes.asp\&quot; method=\&quot;post\&quot;&gt;
&lt;b&gt;Your Favorite Scripts &amp; Languages&lt;/b&gt;&lt;br&gt;
&lt;input type=\&quot;checkbox\&quot; name=\&quot;list\&quot; value=\&quot;1\&quot;&gt;Java&lt;br&gt;
&lt;input type=\&quot;checkbox\&quot; name=\&quot;list\&quot; value=\&quot;2\&quot;&gt;Javascript&lt;br&gt;
&lt;input type=\&quot;checkbox\&quot; name=\&quot;list\&quot; value=\&quot;3\&quot;&gt;Active Server Pages&lt;br&gt;
&lt;input type=\&quot;checkbox\&quot; name=\&quot;list\&quot; value=\&quot;4\&quot;&gt;HTML&lt;br&gt;
&lt;input type=\&quot;checkbox\&quot; name=\&quot;list\&quot; value=\&quot;5\&quot;&gt;SQL&lt;br&gt;

&lt;input type=\&quot;button\&quot; name=\&quot;CheckAll\&quot; value=\&quot;Check All\&quot;
onClick=\&quot;checkAll(document.myform.list)\&quot;&gt;
&lt;input type=\&quot;button\&quot; name=\&quot;UnCheckAll\&quot; value=\&quot;Uncheck All\&quot;
onClick=\&quot;uncheckAll(document.myform.list)\&quot;&gt;
&lt;br&gt;
&lt;/form&gt;</description>
		<content:encoded><![CDATA[<p>Thanks a lot.. We can Use thz coding for check &amp; Uncheck ..Try it .. Gud Luck Frds</p>
<p>&lt;SCRIPT LANGUAGE=\&quot;JavaScript\&quot;&gt;<br />
function checkAll(field)<br />
{<br />
for (i = 0; i &lt; field.length; i++)<br />
	field[i].checked = true ;<br />
}</p>
<p>function uncheckAll(field)<br />
{<br />
for (i = 0; i &lt; field.length; i++)<br />
	field[i].checked = false ;<br />
}<br />
&lt;/script&gt;</p>
<p>Here is the HTML:</p>
<p>&lt;form name=\&quot;myform\&quot; action=\&quot;checkboxes.asp\&quot; method=\&quot;post\&quot;&gt;<br />
&lt;b&gt;Your Favorite Scripts &amp; Languages&lt;/b&gt;&lt;br&gt;<br />
&lt;input type=\&quot;checkbox\&quot; name=\&quot;list\&quot; value=\&quot;1\&quot;&gt;Java&lt;br&gt;<br />
&lt;input type=\&quot;checkbox\&quot; name=\&quot;list\&quot; value=\&quot;2\&quot;&gt;Javascript&lt;br&gt;<br />
&lt;input type=\&quot;checkbox\&quot; name=\&quot;list\&quot; value=\&quot;3\&quot;&gt;Active Server Pages&lt;br&gt;<br />
&lt;input type=\&quot;checkbox\&quot; name=\&quot;list\&quot; value=\&quot;4\&quot;&gt;HTML&lt;br&gt;<br />
&lt;input type=\&quot;checkbox\&quot; name=\&quot;list\&quot; value=\&quot;5\&quot;&gt;SQL&lt;br&gt;</p>
<p>&lt;input type=\&quot;button\&quot; name=\&quot;CheckAll\&quot; value=\&quot;Check All\&quot;<br />
onClick=\&quot;checkAll(document.myform.list)\&quot;&gt;<br />
&lt;input type=\&quot;button\&quot; name=\&quot;UnCheckAll\&quot; value=\&quot;Uncheck All\&quot;<br />
onClick=\&quot;uncheckAll(document.myform.list)\&quot;&gt;<br />
&lt;br&gt;<br />
&lt;/form&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jesu</title>
		<link>http://www.easywayserver.com/blog/javascript-select-all-checkboxes/comment-page-1/#comment-22539</link>
		<dc:creator>Jesu</dc:creator>
		<pubDate>Thu, 30 Jun 2011 10:14:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.easywayserver.com/blog/?p=15#comment-22539</guid>
		<description>Thanks</description>
		<content:encoded><![CDATA[<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abdul Azeez</title>
		<link>http://www.easywayserver.com/blog/javascript-select-all-checkboxes/comment-page-1/#comment-18793</link>
		<dc:creator>Abdul Azeez</dc:creator>
		<pubDate>Mon, 07 Mar 2011 06:26:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.easywayserver.com/blog/?p=15#comment-18793</guid>
		<description>Hi,
Over here you have manually defined 1 to 10 checkboxes,but if what when these 1 to 10 checkboxes or many are retrieved from database as per the ResultSet in jsp page.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Over here you have manually defined 1 to 10 checkboxes,but if what when these 1 to 10 checkboxes or many are retrieved from database as per the ResultSet in jsp page.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rajkumar</title>
		<link>http://www.easywayserver.com/blog/javascript-select-all-checkboxes/comment-page-1/#comment-18014</link>
		<dc:creator>Rajkumar</dc:creator>
		<pubDate>Wed, 09 Feb 2011 11:02:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.easywayserver.com/blog/?p=15#comment-18014</guid>
		<description>Thanks a lot buddy!</description>
		<content:encoded><![CDATA[<p>Thanks a lot buddy!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: karthik</title>
		<link>http://www.easywayserver.com/blog/javascript-select-all-checkboxes/comment-page-1/#comment-9157</link>
		<dc:creator>karthik</dc:creator>
		<pubDate>Wed, 26 May 2010 06:48:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.easywayserver.com/blog/?p=15#comment-9157</guid>
		<description>I think there is no much use of   
&quot;
if(document.frm.allCheck.checked==true)
  {
   selectCheck(true);
  }
  else
  {
    selectCheck(false);
  }
&quot;
this check, instead we can directly pass the value directly 
&quot; selectCheck(document.frm.allCheck.checked); &quot;</description>
		<content:encoded><![CDATA[<p>I think there is no much use of<br />
&#8221;<br />
if(document.frm.allCheck.checked==true)<br />
  {<br />
   selectCheck(true);<br />
  }<br />
  else<br />
  {<br />
    selectCheck(false);<br />
  }<br />
&#8221;<br />
this check, instead we can directly pass the value directly<br />
&#8221; selectCheck(document.frm.allCheck.checked); &#8220;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: john</title>
		<link>http://www.easywayserver.com/blog/javascript-select-all-checkboxes/comment-page-1/#comment-17</link>
		<dc:creator>john</dc:creator>
		<pubDate>Mon, 01 Jun 2009 05:52:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.easywayserver.com/blog/?p=15#comment-17</guid>
		<description>Hi,

To work this code you need to add the single quotes to the &#039;chkName&#039;
Just replace the below code

var fieldName=‘chkName’;

to.........

var fieldName=&#039;chkName&#039;;</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>To work this code you need to add the single quotes to the &#8216;chkName&#8217;<br />
Just replace the below code</p>
<p>var fieldName=‘chkName’;</p>
<p>to&#8230;&#8230;&#8230;</p>
<p>var fieldName=&#8217;chkName&#8217;;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: IRFAN ALI</title>
		<link>http://www.easywayserver.com/blog/javascript-select-all-checkboxes/comment-page-1/#comment-16</link>
		<dc:creator>IRFAN ALI</dc:creator>
		<pubDate>Thu, 23 Apr 2009 11:47:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.easywayserver.com/blog/?p=15#comment-16</guid>
		<description>Hi
When i run this code on my PC then this is&#039;t working.
How ever here on the website it is working fine, so please check it.
Thanks</description>
		<content:encoded><![CDATA[<p>Hi<br />
When i run this code on my PC then this is&#8217;t working.<br />
How ever here on the website it is working fine, so please check it.<br />
Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>

