Here's the situation:
You have a very complex user interface element that repeats in a list. Each has a menu on it, buttons, it hides and shows sub-elements, buttons for switching its state, etc. Etc. Elements are populated via JSON, so you need to build the elements and functionality of the fly.
What is the best way to accomplish this with jQuery? Where would you save the reusable template for the DOM structure? How would you add behavior? $ (). Live?. Livequery? by click? after each json get?
I think I just see how many people do different things. What is your work experience?
Any insight would be greatly appreciated.
source
share