Groups
Groups
Sign in
Groups
Groups
chainjs
Conversations
About
Send feedback
Help
Chaining same data twice?
0 views
Skip to first unread message
Eshan
unread,
Sep 1, 2008, 12:08:36 PM
9/1/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to chainjs
I have the following markup:
<body>
Hello,
<span id="hello" class="user">
<span class="firstname"></span>
<span class="lastname"></span>
</span>!
Goodbye
<span id="goodbye" class="user">
<span class="firstname"></span>
<span class="lastname"></span>
</span>!
</body>
The following lines populate both sections properly:
$('#hello').item(user).chain();
$('#goodbye').item(user).chain();
But this line does not:
$('.user').item(user).chain();
Is this working as intended?
Rizqi Ahmad
unread,
Sep 1, 2008, 12:36:44 PM
9/1/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to chainjs
yeah, there are some limitation regarding multiple elements. currently
you have to do $('.user').each(function(){$(this).chain()})
Eshan
unread,
Sep 1, 2008, 11:07:08 PM
9/1/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to chainjs
Thanks, $('.user').each(function(){$(this).item(user).chain()}); did
work.
Reply all
Reply to author
Forward
0 new messages