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
$("#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
2 matches
Mail list logo