且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

标签在jqtouch中无法点击

更新时间:2023-12-04 13:37:04

感谢@Ivan我找到了更好的解决方案:

thanks to @Ivan I found better solution:

  $('label[for],input[type="radio"]').bind('click', function(e) {
    e.stopPropagation();
  });

此外它还修复了单选按钮。

Additionally it fixes radio buttons.

唯一的缺点是 - 它会停止传播,但在我的情况下它是可以的。

The only downside is - it stops propagation, but in my case it is ok.