Adsense
Popular Posts
- MySQL workbench -"Could not decrypt password cache"
- Install APXS in Redhat Linux
- react-pdf, display pdf in react.js
- Transfer modules between sites
- JavaScript, remove trailing insignificant zeros after toFixed function
- Set Windows path command line
- datatable order by nunmeric
- MySQL date created and date modified
- React: connect(mapStateToProps, mapDispatchToProps)
- DataTable table order by numeric, not by text
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