How do I alternate table row colors in asp.net mvc using jquery?
Posted
by grenade
on Stack Overflow
See other posts from Stack Overflow
or by grenade
Published on 2009-03-19T17:14:21Z
Indexed on
2010/05/22
0:30 UTC
Read the original article
Hit count: 242
jQuery
Probably a dumb question but I'm new to MVC and jQuery. I want to alternate the row colors of my tables and I've decided that I'm going to use jQuery to do it. I know that I could write an extension method (http://haacked.com/archive/2008/08/07/aspnetmvc_cycle.aspx), etc but after reading SH's comment on the article at http://haacked.com/archive/2008/05/03/code-based-repeater-for-asp.net-mvc.aspx I've picked jQuery as the solution I want to implement.
I want to implement the method described at http://www.packtpub.com/article/jquery-table-manipulation-part2 but I haven't figured out where to put the initial jQuery call (eg: $(document).ready(function() {...});
Like I said, I'm new to jQuery...
© Stack Overflow or respective owner