Adsense
Popular Posts
- Code update from PHP 7.4 to PHP 8.1 - PhpSpreadsheet
- MySQL workbench -"Could not decrypt password cache"
- Code update from PHP 7.4 to PHP 8.1 - Worksheet/Iterator.php
- Rendering HTML tags inside textarea
- axios handle blob type data
- Unix Utils and wget in Windows
- increase mysql query speed
- Setup vi syntax for PHP
- EXCEL return to the next line in the same cell
- Get WAMP running on EC2
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