[ ... snipped ... ]

>
> ... and after looking at your code (which always helps), I see you're
> referencing "this" (as opposed to jQuery's $(this)), which is why html()
> wouldn't have worked.
>
> In that case, sure.  It's been said that "this" is more efficient than
> creating a jQuery reference to it via $(this).
>
> So to clarify... this.innerHTML is the functional equivalent of
> $(this).html(), but without the "cost" of creating a new jQuery object for
> each iteration of your each().
>
[ ... snipped ... ]

Thanks for the explanation.

I went back and cleaned up my code to use jQuery(this).html() instead
of this.innerHTML and all is well.

Mike

Reply via email to