That'll work and I've done the same thing (in Template). When you find yourself doing stuff like that though take a *hard* look at your design to make sure there isn't a way to generalize it out. Or at least split the two code types apart to avoid confusing the next JS or Perl editor.
I often put my jQuery "resources/templates" as hidden divs or whatever in the page. Then you can .clone() them for dialog boxes or table rows or whatevever without fuss or needing to do a ton of verbose, inline JS to get your HTML. It helps to avoid id attributes entirely and focus on class and DOM position; jQuery excels at this. Once you get the hang of it it's easy and it's *much* more flexible/extensible than the id-based approach pervasive in so much JS.
In reply to Re: jQuery, Mason, perl??
by Your Mother
in thread jQuery, Mason, perl??
by raisputin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |