[jQuery] Re: Checkbox checked attribute no set when trigger using click()

2009-02-19 Thread Dave Methvin
> However, in the click handler when I get the event.target.checked is > ALWAYS false for the above call.  All is as expected when the handler > is called based on a real UI click. The click event is a little strange. When a "real" click happens you see the effect of the click in the handler, suc

[jQuery] Re: Checkbox checked attribute no set when trigger using click()

2009-02-19 Thread James
Instead of using click() which will fire the event, try setting the checkbox attribute directly: $(checkbox).attr('checked', 'checked'); On Feb 19, 1:37 pm, Chuck wrote: > Hi, > > I'm rewriting some old code to use jQuery now, and I can figure out > why this isn't working and would love some hel