The difference between the href and onclick events of the a tag
- 2020-03-30 04:19:29
When using the CheckBoxList control, you want to add a link after each checkbox. Click on the link to do more than that.
< Input type = "checkbox" name = "CHK" id = "CHK" >
< The label for = "CHK" > Select it < A onclick = "this. ParentNode. Click ();" Href = "#" style = "border: 1 px blue solid;" > [link in label]< / a> < / label>
Finally, it is implemented by parentNode.