Groups
Groups
Sign in
Groups
Groups
chainjs
Conversations
About
Send feedback
Help
Trying to create alternating colored rows on table
0 views
Skip to first unread message
delaysla
unread,
Aug 9, 2009, 10:40:25 PM
8/9/09
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
Hello;
I am new to discussion groups. So am hoping this question is
appropriate.
I am trying to create a table with alternating rows of different
colors using the chain.js library.
The table gets created fine, but I don't know enough about javascript
to figure out how to change the row's attributes
Any help would be appreciated. or just pointing be to some basic
reference material would be great.
rizqi
unread,
Aug 10, 2009, 2:35:26 PM
8/10/09
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
hi,
try this:
<div id="chain">
<div class="odd">row</div>
</div>
$('#chain').items(...).chain(function(){
if(this.hasClass('odd'))
this.removeClass('odd').addClass('even');
});
david de la ysla
unread,
Aug 11, 2009, 9:46:11 AM
8/11/09
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 cha...@googlegroups.com
thanks so very much this is very helpful. I am just getting started using your chain function and it seems very good.
Reply all
Reply to author
Forward
0 new messages