<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comentários sobre: jQuery: marcando/desmarcando todos os checkbox (check/uncheck checkboxes)</title>
	<link>http://www.tuliofaria.net/jquery-marcandodesmarcando-todos-os-checkbox-checkuncheck-checkboxes/</link>
	<description>web standards, design, programação, e mais um monte de coisa que acho interessante!</description>
	<pubDate>Tue, 07 Feb 2012 16:11:37 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: artur</title>
		<link>http://www.tuliofaria.net/jquery-marcandodesmarcando-todos-os-checkbox-checkuncheck-checkboxes/#comment-84729</link>
		<dc:creator>artur</dc:creator>
		<pubDate>Wed, 30 Nov 2011 14:54:34 +0000</pubDate>
		<guid>http://www.tuliofaria.net/jquery-marcandodesmarcando-todos-os-checkbox-checkuncheck-checkboxes/#comment-84729</guid>
		<description>Obrigado pessoal!
usei o script do Lucas Guima ;)</description>
		<content:encoded><![CDATA[<p>Obrigado pessoal!<br />
usei o script do Lucas Guima <img src='http://www.tuliofaria.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bruno</title>
		<link>http://www.tuliofaria.net/jquery-marcandodesmarcando-todos-os-checkbox-checkuncheck-checkboxes/#comment-54710</link>
		<dc:creator>Bruno</dc:creator>
		<pubDate>Tue, 10 May 2011 20:04:00 +0000</pubDate>
		<guid>http://www.tuliofaria.net/jquery-marcandodesmarcando-todos-os-checkbox-checkuncheck-checkboxes/#comment-54710</guid>
		<description>Cara Jquery é uma linguagem que trabalha com seletores e isto faz dela uma linguagem de script bastante poderosa e possibilita coisas do tipo:$(document).ready(function(){

$('#Todos').click(function(){$(':checkbox').attr('checked',this.checked)});
};

Ou seja, não se faz necessário o uso de for, além disto o seu script está quebrado, por favor reveja seu exemplo e parabéns pela iniciativa.
ABs</description>
		<content:encoded><![CDATA[<p>Cara Jquery é uma linguagem que trabalha com seletores e isto faz dela uma linguagem de script bastante poderosa e possibilita coisas do tipo:$(document).ready(function(){</p>
<p>$(&#8217;#Todos&#8217;).click(function(){$(&#8217;:checkbox&#8217;).attr(&#8217;checked&#8217;,this.checked)});<br />
};</p>
<p>Ou seja, não se faz necessário o uso de for, além disto o seu script está quebrado, por favor reveja seu exemplo e parabéns pela iniciativa.<br />
ABs</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: WilliamF</title>
		<link>http://www.tuliofaria.net/jquery-marcandodesmarcando-todos-os-checkbox-checkuncheck-checkboxes/#comment-52628</link>
		<dc:creator>WilliamF</dc:creator>
		<pubDate>Wed, 13 Apr 2011 03:19:42 +0000</pubDate>
		<guid>http://www.tuliofaria.net/jquery-marcandodesmarcando-todos-os-checkbox-checkuncheck-checkboxes/#comment-52628</guid>
		<description>Olá, boa noite, estou tentando fazer este select a horas nenhum exemplo que achei na internet funcionou este jquery_checkboxes.js q tem ai nos comments, nen ele funcionou olha q cliquei no link dele e teste ali msm n baixei nen nada, o que seria eficaz???</description>
		<content:encoded><![CDATA[<p>Olá, boa noite, estou tentando fazer este select a horas nenhum exemplo que achei na internet funcionou este jquery_checkboxes.js q tem ai nos comments, nen ele funcionou olha q cliquei no link dele e teste ali msm n baixei nen nada, o que seria eficaz???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michel Candido</title>
		<link>http://www.tuliofaria.net/jquery-marcandodesmarcando-todos-os-checkbox-checkuncheck-checkboxes/#comment-51880</link>
		<dc:creator>Michel Candido</dc:creator>
		<pubDate>Wed, 30 Mar 2011 11:48:29 +0000</pubDate>
		<guid>http://www.tuliofaria.net/jquery-marcandodesmarcando-todos-os-checkbox-checkuncheck-checkboxes/#comment-51880</guid>
		<description>$("#all").click(function(){
            var all = $(this).attr('checked');
            $('input[name="classificacao[]"]').each(function(){
               $(this).attr('checked',all);
        });</description>
		<content:encoded><![CDATA[<p>$(&#8221;#all&#8221;).click(function(){<br />
            var all = $(this).attr(&#8217;checked&#8217;);<br />
            $(&#8217;input[name=&#8221;classificacao[]&#8221;]&#8217;).each(function(){<br />
               $(this).attr(&#8217;checked&#8217;,all);<br />
        });</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michel Candido</title>
		<link>http://www.tuliofaria.net/jquery-marcandodesmarcando-todos-os-checkbox-checkuncheck-checkboxes/#comment-51879</link>
		<dc:creator>Michel Candido</dc:creator>
		<pubDate>Wed, 30 Mar 2011 11:36:49 +0000</pubDate>
		<guid>http://www.tuliofaria.net/jquery-marcandodesmarcando-todos-os-checkbox-checkuncheck-checkboxes/#comment-51879</guid>
		<description>$("#all").click(function(){        
    $(':checkbox').attr('checked',this.checked);
});</description>
		<content:encoded><![CDATA[<p>$(&#8221;#all&#8221;).click(function(){<br />
    $(&#8217;:checkbox&#8217;).attr(&#8217;checked&#8217;,this.checked);<br />
});</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Silas</title>
		<link>http://www.tuliofaria.net/jquery-marcandodesmarcando-todos-os-checkbox-checkuncheck-checkboxes/#comment-45605</link>
		<dc:creator>Silas</dc:creator>
		<pubDate>Tue, 23 Nov 2010 20:16:12 +0000</pubDate>
		<guid>http://www.tuliofaria.net/jquery-marcandodesmarcando-todos-os-checkbox-checkuncheck-checkboxes/#comment-45605</guid>
		<description>Porque seu exemplo não funciona?</description>
		<content:encoded><![CDATA[<p>Porque seu exemplo não funciona?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tiago</title>
		<link>http://www.tuliofaria.net/jquery-marcandodesmarcando-todos-os-checkbox-checkuncheck-checkboxes/#comment-34533</link>
		<dc:creator>Tiago</dc:creator>
		<pubDate>Wed, 16 Jun 2010 16:56:49 +0000</pubDate>
		<guid>http://www.tuliofaria.net/jquery-marcandodesmarcando-todos-os-checkbox-checkuncheck-checkboxes/#comment-34533</guid>
		<description>Bem simples

$("#checkAll").change(function(){$(".chM").attr('checked', this.checked);});</description>
		<content:encoded><![CDATA[<p>Bem simples</p>
<p>$(&#8221;#checkAll&#8221;).change(function(){$(&#8221;.chM&#8221;).attr(&#8217;checked&#8217;, this.checked);});</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lucas Guima</title>
		<link>http://www.tuliofaria.net/jquery-marcandodesmarcando-todos-os-checkbox-checkuncheck-checkboxes/#comment-22408</link>
		<dc:creator>Lucas Guima</dc:creator>
		<pubDate>Tue, 02 Feb 2010 23:59:41 +0000</pubDate>
		<guid>http://www.tuliofaria.net/jquery-marcandodesmarcando-todos-os-checkbox-checkuncheck-checkboxes/#comment-22408</guid>
		<description>Olá, fiz um aqui.

$(function () {
  $("#checkAll").change(function(){
    if (this.checked) {
      $(".chM").attr({ checked: true });
    } else {
      $(".chM").attr({ checked: false });
    }
  });
  $(".chM").change(function(){
    if ($("#main").attr('checked') == true) {
      $("#main").attr({ checked: false })
    }
  });
});

Ele seleciona e desseleciona os checkbox com classe "chM" ao selecionar o checkbox com id "checkAll" e desseleciona este último ao desselecionar algum com classe "chM".

E só pra constar, o FOR do seu script tá incompleto e o exemplo no final do post não tá funcionando.

Abraço.</description>
		<content:encoded><![CDATA[<p>Olá, fiz um aqui.</p>
<p>$(function () {<br />
  $(&#8221;#checkAll&#8221;).change(function(){<br />
    if (this.checked) {<br />
      $(&#8221;.chM&#8221;).attr({ checked: true });<br />
    } else {<br />
      $(&#8221;.chM&#8221;).attr({ checked: false });<br />
    }<br />
  });<br />
  $(&#8221;.chM&#8221;).change(function(){<br />
    if ($(&#8221;#main&#8221;).attr(&#8217;checked&#8217;) == true) {<br />
      $(&#8221;#main&#8221;).attr({ checked: false })<br />
    }<br />
  });<br />
});</p>
<p>Ele seleciona e desseleciona os checkbox com classe &#8220;chM&#8221; ao selecionar o checkbox com id &#8220;checkAll&#8221; e desseleciona este último ao desselecionar algum com classe &#8220;chM&#8221;.</p>
<p>E só pra constar, o FOR do seu script tá incompleto e o exemplo no final do post não tá funcionando.</p>
<p>Abraço.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: james</title>
		<link>http://www.tuliofaria.net/jquery-marcandodesmarcando-todos-os-checkbox-checkuncheck-checkboxes/#comment-21732</link>
		<dc:creator>james</dc:creator>
		<pubDate>Wed, 27 Jan 2010 23:59:22 +0000</pubDate>
		<guid>http://www.tuliofaria.net/jquery-marcandodesmarcando-todos-os-checkbox-checkuncheck-checkboxes/#comment-21732</guid>
		<description>opa
para marcar todos basta
$('.list_check').attr('checked', 'checked');
descmarcar
$('.list_check').attr('checked', '');

agora preciso capturar somente os checkados sem dar refresh
alguem da uma luz aew</description>
		<content:encoded><![CDATA[<p>opa<br />
para marcar todos basta<br />
$(&#8217;.list_check&#8217;).attr(&#8217;checked&#8217;, &#8216;checked&#8217;);<br />
descmarcar<br />
$(&#8217;.list_check&#8217;).attr(&#8217;checked&#8217;, &#8221;);</p>
<p>agora preciso capturar somente os checkados sem dar refresh<br />
alguem da uma luz aew</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Felipe (CautNew)</title>
		<link>http://www.tuliofaria.net/jquery-marcandodesmarcando-todos-os-checkbox-checkuncheck-checkboxes/#comment-18475</link>
		<dc:creator>Felipe (CautNew)</dc:creator>
		<pubDate>Thu, 24 Dec 2009 12:21:10 +0000</pubDate>
		<guid>http://www.tuliofaria.net/jquery-marcandodesmarcando-todos-os-checkbox-checkuncheck-checkboxes/#comment-18475</guid>
		<description>Esse metodo está muuuito bom, cara! Adorei! :)

mas veja o laço for... ele está errado =/
você abriu as condições mas nao as completou nem as fechou, consequentemente nao abriu o for para colocar as instruções...

corrija aí, mano!
senão a galera vai criticar ;)
o/</description>
		<content:encoded><![CDATA[<p>Esse metodo está muuuito bom, cara! Adorei! <img src='http://www.tuliofaria.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>mas veja o laço for&#8230; ele está errado =/<br />
você abriu as condições mas nao as completou nem as fechou, consequentemente nao abriu o for para colocar as instruções&#8230;</p>
<p>corrija aí, mano!<br />
senão a galera vai criticar <img src='http://www.tuliofaria.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
o/</p>
]]></content:encoded>
	</item>
</channel>
</rss>

