Highlight row on click using jquery

If you want to highlight a row on click, include jquery js at your head tag and add following...


<style type="text/css">
    
    tr.walkRows td {
       background: #D7DF23;
    }  


</style>

<script type="text/javascript">
 $(document).ready(function() {
$('tr').click(function () {
     $(this).toggleClass('walkRows');
    });  
 });
</script>

Popular posts from this blog

Can not connect to git using ssh (Permissions 0644 for '/root/.ssh/id_rsa' are too open.

Upload file on Google cloud storage using Java servlet on google app engine

Create Nested table inside a table on a pdf document using iText