[jQuery] Re: Form Traversal Best Practices

2009-06-19 Thread Karl Swedberg
On Jun 19, 2009, at 2:10 PM, Brandon! wrote: So I've always had a couple questions about forms and jQuery, so I thought I'd finally ask and see if I can get a straight answer (they're all pretty simple). First question: When selecting a form element by it's attribute(s), what's the proper

[jQuery] Re: Form Traversal Best Practices

2009-06-19 Thread Brandon!
Thanks, I thought I remembered reading about deprecating one of the two forms, I just couldn't remember which and I couldn't find the post again. Why :checkbox vs input[type=checkbox]? I noticed a couple special keywords that had colons in front, but I wasn't sure what their purpose was.

[jQuery] Re: Form Traversal Best Practices

2009-06-19 Thread Matt Kruse
On Jun 19, 1:21 pm, Karl Swedberg k...@englishrules.com wrote: Here, .attr() is a bit of a misnomer, because it's really looking at   DOM properties, not (x)HTML attributes. I'm pretty sure either one   works, but I use .attr('checked', true) Indeed, the code internally sets the DOM attribute