JavaScript to add table row onclick events

后端 未结 3 1893
栀梦
栀梦 2021-01-15 15:06

I\'m new to Javascript. I want to add onclick events to table rows. I\'m not using JQuery.

I loop thru the rows and use a closure to make sure I have the state of th

3条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-15 15:52

    You just have to remove an extra function and script will be like this

    
    

提交回复
热议问题