Is there a way to change the color/background of a selected row just like it does on hover, and also have the option to deselect the row?
To see how it looks on hovering, check out: http://jsfiddle.net/q7ApN/
If you want to make a Change:
#gradient-style tbody tr:hover td {
background: #d0dafd url('table-images/gradhover.png') repeat-x;
color: #339;
}
The Change Would Be:
#gradient-style tbody tr:hover, tr.selected td {
background: #d0dafd url('table-images/gradhover.png') repeat-x;
color: #339;
}
Actual HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
... [remaining code omitted for brevity] ...
Any suggestions or solutions for this issue?