[jQuery] assigning jquery object to a variable?
jQuery looks nice, but seems to be missing the basics. Perhaps not.
Perhaps is just lacking documentation.
Why can't i do this?
var myElement = $("#myElementId");
myElement.style.display = "none";
yet i can do :
$("#myElementId").css("display" "none");
I want to assign the query object to avariable to perform multiple
attribute updates without re-querying (or chaining).
Am I missing something? Or am I gonig t have to go back to prototype ?
thanks
--
howie
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/