I have the following HTML
2条回答 难免孤独 (楼主) 2020-12-21 07:58 You have to access the corresponding label separately, since it resides in a separate tag. Because the labels' for attribute is equal to its option's id, you can get to the label easily: for(var i=0; i Also check out this fiddle 0 讨论(0) 查看其它2个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
You have to access the corresponding label separately, since it resides in a separate tag. Because the labels' for attribute is equal to its option's id, you can get to the label easily:
for
id
for(var i=0; i
Also check out this fiddle