function select() {
    var element = this;
    while(element.tagName != "TR") {
        element = element.parentNode;
    }
    element.classList.toggle("selected");
}
// To enable user-friendly selection

To enable user-friendly selection
To enable user - friendly selection
function select() {
    var element = this;
    while(element.tagName != "TR") {
        element = element.parentNode;
    }
    element.classList.toggle("selected");
}
function select ( ) { var element = this ; while ( element . tagName != "TR" ) { element = element . parentNode ; } element . classList . toggle ( "selected" ) ; }
To enable user-friendly selection
To enable user - friendly selection