I want to know how can I disable and enable the highlighting on an HTML table using Javascript by clicking an html button.
Here are my codes:
tabletest.ht
Name Address Tom UK Hans Germany Henrik Denmark Lionel Italy Ricardo Brazil Cristiano Portugal
Fixed your code. Use a function to check if it's disabled, if it isn't, then highlight. If it is, then don't. Simple enough.
Demo