[jQuery] Re: Noob question about wrapped sets

2009-07-20 Thread nyte999
Thank you Jules! I thought that *might* be the case, but seeing the tell-tail jQuery code in the DHTML was a little confusing to me. But yes, I think I understand it now. "alt" is a normal JavaScript object, NOT jQuery. So when accessing JS objects I must always use the [0]. This also seems to app

[jQuery] Re: Noob question about wrapped sets

2009-07-20 Thread Jules
$("#myElement) returns jQuery object and $("#myElement")[0] returns DHTML object. Here is a sample on how to access 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 tha