#1: Use data method instead of storing data inside the DOM.
#2: Take advantage of jQuery’s built-in custom selectors.
#3: If you are Manipulating the DOM a lot, use livequery.
#4: Use jQuery form plugin to submit files via Ajax.
#5: Use classes as flags.
-
Pet Projects
that’s correct livequery is the trick when dealing with DOM on runtime, or on the fly
http://brandonaaron.net/docs/livequery/