I guess you all know how tables look like in phpmyadmin (I’m talking about the html tables which show the structure and data of the SQL tables). I’m looking to add a similar functionality to my html tables in which if the user clicks the table row, a checkbox on the left of the table would be checked, and if they click it again, the checkbox would turn to the default state which is unchecked, just like in phpmyadmin interface. Also tr color should change upon row click and change again to the default color specified by the css after the second click, again the same way it works in phpmyadmin.
Share
Very simple: http://jsfiddle.net/ZBF2r/2/
First the hover effect:
Then the click effect:
And then toggle the checkbox: