Is the data attribute something jQuery knows about? Never seen it
myself.

Anyway, here's an idea. If the value of data is in object notation,
read it into a var and eval it much like you would a JSON string!

Then you might be able to work on the data more easily.

Adrian

On Oct 4, 9:55 pm, me-and-jQuery <[EMAIL PROTECTED]> wrote:
> Well, I meant with attr("data","{ id : 6}")... my mistake.
>
> On Oct 4, 10:24 pm, me-and-jQuery <[EMAIL PROTECTED]> wrote:
>
>
>
> > So is it possible to change the value of metadata parameter? Lets say
> > we have <div data="{ id: 5 }">.
>
> > Or is the only way to change it with attr("id","6")? I have more
> > parameters for element, so this is not an elegant solution.
>
> > Thanks.- Hide quoted text -
>
> - Show quoted text -

Reply via email to