That would be better in a separate topic :D You still have the overhead of creating a new jQuery object for each action, but it's not as much as searching the document again for it. It might make a difference if you have more than a dozen operations and it's dealing with the UI.
cheers, - ricardo On Jan 14, 2:40 pm, Miloš Rašić <milos.ra...@gmail.com> wrote: > Since you're already discussing $(this), I'd like to ask something. > It is a good practice to assign selected nodes to variables if you are going > to need them more than once so as not to make jQuery search the document for > them again and again. What about $(this)? Do I need to assign it to a > variable or is it fast enough for repeated use?