[jQuery] Re: Selectors only matching first element

2009-06-05 Thread Casey Wise
input typ=checkbox class=myCheck name=myCheck value=1 input typ=checkbox class=myCheck name=myCheck value=2 input typ=checkbox class=myCheck name=myCheck value=3 input typ=checkbox class=myCheck name=myCheck value=4 $(.myCheck).each(function() { $(this)attr('checked', true); }); I know

[jQuery] Re: Selectors only matching first element

2009-06-04 Thread Mauricio (Maujor) Samy Silva
There isn't in HTML Specs a true value for checked attribute. Try: $(input:checkbox).attr(checked, checked); Maurício -Mensagem Original- De: matt Para: jQuery (English) Enviada em: quinta-feira, 4 de junho de 2009 18:12 Assunto: [jQuery] Selectors only matching first element

[jQuery] Re: Selectors only matching first element

2009-06-04 Thread matt
Thanks. Unfortunately this doesn't seem to work either. The div example from the page should work as it was copied directly, but it doesn't. This is bizarre. If it helps, I have the tablesorter, validate and maybe even UI plugins set up here as well.. could one of them be interfering? On Jun

[jQuery] Re: Selectors only matching first element

2009-06-04 Thread Mauricio (Maujor) Samy Silva
This works here! Have a look at: http://jsbin.com/awapu/edit Maurício -Mensagem Original- De: matt Para: jQuery (English) Enviada em: quinta-feira, 4 de junho de 2009 19:35 Assunto: [jQuery] Re: Selectors only matching first element Thanks. Unfortunately this doesn't

[jQuery] Re: Selectors only matching first element

2009-06-04 Thread James
I think something in your HTML may be not formatted correctly. Usually plug-ins would not interfere with simple selectors like $ (div). What happens if you remove the plugin code and try it? On Jun 4, 12:35 pm, matt mattseb...@gmail.com wrote: Thanks.  Unfortunately this doesn't seem to work