Html table with button on each row

后端 未结 2 1279
故里飘歌
故里飘歌 2020-12-16 21:21

I have a table with multiple rows and one column. Each table cell has a button in it. Like this:

2条回答
  •  孤城傲影
    2020-12-16 21:34

    Put a single listener on the table. When it gets a click from an input with a button that has a name of "edit" and value "edit", change its value to "modify". Get rid of the input's id (they aren't used for anything here), or make them all unique.

    
    
    
Select

提交回复
热议问题