Alternate Table Row Color Even If Row Is Removed
I want different colors for alternate table rows even when i delete a row in middle. HTML
Row 1 | Solution 1:Try:
Solution 2:You need to change the class as well
Use :nth-child if want to support only modern browsers - Demo: Fiddle
then
Also note: use Solution 3:Use CSS3 for the styling:
Now no manual updating, neither for the link classes nor the row backgrounds is needed. See updated demo. Solution 4:works perfectly with your tr. the link color doesent change because youre not targeting it with jQuery Solution 5:I have updated the fiddle You need the update the class sam and sams
|
Post a Comment for "Alternate Table Row Color Even If Row Is Removed"