[jQuery] Re: Noob question about wrapped sets

2009-07-20 Thread nyte999
ess alt attribute > jQuery $("#myElement").attr("alt") > vs > DHTML $("#myElement")[0].alt > > Both code return the same value.  Correct me if i am wrong, I think > the DHTML version is faster than the jQuery one. > > On Jul 21, 8:07 am, nyte999 w

[jQuery] Noob question about wrapped sets

2009-07-20 Thread nyte999
Going through the tutorials on this website and others, I've found some syntax that I don't understand and is never explained. Usually wrapped sets look like this: $(#myElement) But once in a while they look like this $(#myElement)[0] Here are a few examples of it in use: $("div").index($("di