How can I allow a specific portion of my table to be responsive to clicks in html?
Consider the following set of codes I have: <table> <tr id='changeOnClick'> <td></td> <td id="metre_" >Metre</td> <td id="centimetre_">Centimetre</td> <td id="fermi_" >Fermi</td> </tr></table> Now the JavaScript I have is something like this: document.getElementById('chooseid').onclick = start; function start(){ \\Do something... } But, as you see, I don't want the first cell, that is an empty <td> to get affected by this start() in my JavaScript code. So, what changes shall I do to fix this? Do I need to consider taking all the remaining cells of the row into another container? In fact, I tri
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.