Hi, thanks for your reply...

I was thinking of storing the template in the DOM so it's visible by
our web designer to tweat. How would I read that template (DIV block)
into a javascript variable?


Thanks for your help!




On Mar 26, 3:44 pm, MorningZ <morni...@gmail.com> wrote:
> of course it's possible.....
>
> you'd use:
> - a variable that contains the string that is the template
> - JavaScript's ".replace" method to fill in the ID and HTML
>
> also, there's plenty of template plugins out there (chain.js,
> jTemplate)
>
> On Mar 26, 11:34 am, nmiddleweek <nmiddlew...@googlemail.com> wrote:
>
> > Hello,
>
> > I'm trying to create a dynamic list of data using jQuery... Each row
> > will have an INPUT and a BUTTON element.
>
> > I'm thinking of holding a hidden 'template' for each row and then
> > duplicating the 'template' row for each row needed and then edit the
> > ID and innerHTML of the DOM elements for that row...
>
> > Is this possible?
>
> > Thanks,
> > Nick

Reply via email to