Clickable label not working in IE 8

后端 未结 9 2141
Happy的楠姐
Happy的楠姐 2020-12-14 01:47

I\'ve got the following list item:

  • 9条回答
    •  刺人心
      刺人心 (楼主)
      2020-12-14 01:56

      I was looking for an answer to this and wrote a quick dirty jquery handler for it:

      $("label").click(function(){
          if ($(this).attr("for") != "")
              $("#" + $(this).attr("for")).click();
      });
      

    提交回复
    热议问题