Home > front end >  How to through the checkbox is selected for the back of the td's value?
How to through the checkbox is selected for the back of the td's value?

Time:10-24


Smoke volume unit & lt;/td> Select & lt;/td> Case number & lt;/td> The case name & lt;/td> Law enforcement problems & lt;/td> Points situation & lt;/td> Evaluation results & lt;/td> 3201033303780362 & lt;/td> Cancel the third duplicate according to early warning & lt;/td> Compulsory measures print cancelled after the third duplicate & lt;/td> 3201033303654126 & lt;/td> License plate number, cancel the third duplicate according to early warning & lt;/td> Compulsory measures print cancelled after the third duplicate & lt;/td>

CodePudding user response:

 
[... document. QuerySelectorAll (" input [type=checkbox] ")], forEach (item=& gt; {
Item. AddEventListener (" change ", ()=& gt; {
If (item. Checked) alert (item. ParentNode. ParentNode. QuerySelector (" input ^=scoreCq [id] "). The value)
}, false)
})
  • Related