thanks for the advice

sometimes thought it seems all things possible is not to
be found SO easily on the jQuery documentation pages

nice one



On 15 Apr, 11:32, Donny Kurnia <donnykur...@gmail.com> wrote:
> hybris77 wrote:
> > ponder something like this:
>
> > var elements = $( '#template_elements' ).html();
>
> > $( elements ".mol_row" ).append( "<td>"+ molname +"</td>");
>
> > is that the correct way to add to a particular element inside a
> > cached
> > jQuery object?
>
> > many thanks
>
> > /pär
>
> You must swap the selector:
>
> $(".mol_row", elements).append("<td>"+ molname +"</td>");
>
> Read again the documentation about selector, there are second parameter
> to define the search scope.
>
> --
> Donny Kurniahttp://hantulab.blogspot.comhttp://www.plurk.com/user/donnykurnia

Reply via email to