TargetTable jQuery Plugin
Tested in IE8, IE7, Mozilla Firefox 3.5.7 and Google Chrome 4.0.249.89
Author: Mark Philip Camilleri
jQuery Project Page:
plugins.jquery.com/project/TargetTable
| ID | Name | Surname | Another Column |
| 1 | Mark | Camilleri | #4122 |
| 2 | Philip | Borg | #242 |
| 3 | Delf | Camilleri | #322 |
JavaScript:
<script type="text/javascript" src="jquery.targettable.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$(".targettable").targetTable({
rowBgColor: "#50b05E", rowTextColor: "#000",
columnBgColor: "#ccc", columnTextColor: "#000",
targetBgColor: "#00cccc", targetTextColor: "#fff"
});
});
</script>
HTML:
<table class="targettable" width="100%" border="1">
<tr>
<th>ID</th><th>Name</th><th>Surname</th><th>Another Column</th>
</tr>
<tr>
<td>1</td><td>Mark</td><td>Camilleri</td><td>#4122</td>
</tr>
<tr>
<td>2</td><td>Philip</td><td>Borg</td><td>#242</td>
</tr>
<tr>
<td>3</td><td>Delf</td><td>Camilleri</td><td>#322</td>
</tr>
</table>
Download jQuery.TargetTable.min.js Download jQuery.TargetTable.js