Re: [jQuery] what's the difference betweendocument.getElementById('id') and $('#id') ?

2007-01-17 Thread Daniel McBrearty
thanks Aaron, Michael! that makes it clear. On 1/16/07, Michael Geary [EMAIL PROTECTED] wrote: Now that it is laid out in front of me it's pretty obvious, but when you come into the thing cold, these things are not obvious. I think it would be a good idea to explicitly state what the

Re: [jQuery] what's the difference betweendocument.getElementById('id') and $('#id') ?

2007-01-16 Thread Daniel McBrearty
yes. Thanks. I have it now. Any takers on my what is the jQuery object question? Is it simply an array of elements that have been selected? It may be kind of obvious, but it took me a few days to figure it. It might be good to explicitly say this somewhere early in the docs IMHO. thanks again.

Re: [jQuery] what's the difference betweendocument.getElementById('id') and $('#id') ?

2007-01-16 Thread Erik Beeson
The jQuery object is a chunk of the DOM, on steroids. --Erik On 1/16/07, Daniel McBrearty [EMAIL PROTECTED] wrote: yes. Thanks. I have it now. Any takers on my what is the jQuery object question? Is it simply an array of elements that have been selected? It may be kind of obvious, but it

Re: [jQuery] what's the difference betweendocument.getElementById('id') and $('#id') ?

2007-01-16 Thread Sam Collett
On 16/01/07, Daniel McBrearty [EMAIL PROTECTED] wrote: yes. Thanks. I have it now. Any takers on my what is the jQuery object question? Is it simply an array of elements that have been selected? It may be kind of obvious, but it took me a few days to figure it. It might be good to

Re: [jQuery] what's the difference betweendocument.getElementById('id') and $('#id') ?

2007-01-16 Thread Michael Geary
Now that it is laid out in front of me it's pretty obvious, but when you come into the thing cold, these things are not obvious. I think it would be a good idea to explicitly state what the object is, and that $ refers to it (I think that's right ... now I mention it I'm not quite sure if

Re: [jQuery] what's the difference betweendocument.getElementById('id') and $('#id') ?

2007-01-15 Thread Dave Methvin
$(function () { self.focus(); $(#userresponse).setAttribute(autocomplete,off); $(#userresponse).focus(); }); I would do this: $(function () { self.focus(); $(#userresponse).attr(autocomplete,off)[0].focus(); }); There isn't a setAttribute method on a