should jQuery data be chainable?
Posted
by pedalpete
on Stack Overflow
See other posts from Stack Overflow
or by pedalpete
Published on 2010-04-19T17:39:16Z
Indexed on
2010/04/19
17:43 UTC
Read the original article
Hit count: 289
I'm trying to add multiple jQuery data entries to a single element.
I suspected that the following would work
jQuery('td.person#a'+personId).data('email',thisPerson.email).data('phone',thisPerson.phone);
However, I am getting nothing but errors when I do this.
jQuery('td.person#a'+personId).data('email',thisPerson.email); jQuery('td.person#a'+personId).data('phone',thisPerson.phone);
is there another way to get more than one data entry on an element? Hopefully chained?
© Stack Overflow or respective owner