Job description
I need a script in JavaScript.
I have a table on the page generated through PHP, I want to be able to select any number of rows and columns with JavaScript. Example: I select one cell in 1 row, I select 3 cells in 4 row, they cannot "zero" when trying to select the next set. The selected cells are to change the value to "-". When I click on a cell that has already been selected, it will return to its original value. Each cell has its own CSS ID. All IDs must be added in one variable table.