I have created a table using jquery. I can highlight a row when it selected by left click. I used this code for this....

```
 <script type='text/javascript'>
            $(document).ready(function() { 
                $("#tableData").delegate("tr", "click", function() {
                    $(this).addClass("selected").siblings().removeClass("selected"); 
                }); 
            });            
 </script>

```

Now I want to select a row and change the color with rightclick also.. Please any one help me...