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 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 4, 6:26 pm, "Mauricio \(Maujor\) Samy Silva" <css.mau...@gmail.com> wrote: > 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 > ... > $("input:checkbox").attr("checked", true); > > checks the first box only.