Prepopulate jQuery Data in html

Posted by Mikael on Stack Overflow See other posts from Stack Overflow or by Mikael
Published on 2010-05-12T11:03:15Z Indexed on 2010/05/12 12:34 UTC
Read the original article Hit count: 223

Filed under:
|
|

jQuery has the very cool feature/method ".data", i wonder if there is a way to have the data in the code so that jQuery can use it when the rendering of html is done. Suppose i have a repeater and looping out children, and i want to add some data to those children without using classes etc. Will i have to add javascript to that repeater just to add stuff to the "data of jquery" or is there some better way?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about html