You could try the jQuery metadata plugin if you need the metadata to
be in the markup itself. If you don't then using data is probably a
better approach.

On Jan 12, 3:46 pm, alexquery <alext...@gmail.com> wrote:
> I am creating a product/category tree using jquery. I would like to be able
> to store additional data within each node.
>
> The nodes in my tree are basicaly list elements. How would I add data to
> these elements such as the count of products and categories beneath them ?
>
> I tried this method.
>
> jQuery.data(objNode, 'intProdCounter', intProdCounter);
>
> But I have had some problems.. are there any other ways of acheiving this ?
>
> thanks for any help in advance
>
> --
> View this message in 
> context:http://www.nabble.com/Meta-Data-within-elements-tp21416642s27240p2141...
> Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to