2

我想检测我的用户何时单击 optgroup 标签,以便我可以添加和删除组中的选项。有没有办法做到这一点?

4

1 回答 1

2

我刚刚在 optgroup 标签上测试了 onclick 事件,结果如下:

Firefox(最新)- WORKS
Opera(最新)- WORKS
IE 9 - WORKS
Chrome(最新)- 失败

这是演示:http:
//jsfiddle.net/44at2/2/

于 2012-09-27T23:04:52.807 回答