Adsense
Popular Posts
- jQuery autocomplete scroll bar for dropdown menu
- mod_auth_cas.so error: undefined symbol: SSL_connect
- JavaScript Arrays and Associate Arrays
- Design date and signature box in Latex
- JavaScript, remove trailing insignificant zeros after toFixed function
- Install APXS in Redhat Linux
- jQuery, toggle the display
- Difference between state and props in React
- super(props) in React
- MySQL workbench -"Could not decrypt password cache"
Thursday, July 3, 2014
Change row background color alternatively in CSS or jQuery
To Change row background c0lor alternatively in jQuery:
<script>
$(document).ready(function()
{
$("tr:even").css("background-color", "lightblue");
});
</script>
In CSS
<style type="text/css">
tr:nth-child(2n) { background-color: #FFEBCD; }
</style>
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment