How do I alternate table row colors in asp.net mvc using jquery?
<p>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 (<a href="http://haacked.com/archive/2008/08/07/aspnetmvc_cycle.aspx" rel="nofollow">http://haacked.com/archive/2008/08/07/aspnetmvc_cycle.aspx</a>), etc but after reading SH's comment on the article at <a href="http://haacked.com/archive/2008/05/03/code-based-repeater-for-asp.net-mvc.aspx" rel="nofollow">http://haacked.com/archive/2008/05/03/code-based-repeater-for-asp.net-mvc.aspx</a> I've picked jQuery as the solution I want to implement.</p>

<p>I want to implement the method described at <a href="http://www.packtpub.com/article/jquery-table-manipulation-part2" rel="nofollow">http://www.packtpub.com/article/jquery-table-manipulation-part2</a> but I haven't figured out where to put the initial jQuery call (eg: $(document).ready(function() {...});</p>

<p>Like I said, I'm new to jQuery...</p>
