How can I execute a function when a disabled checkbox is clicked?

前端 未结 6 2372
轮回少年
轮回少年 2020-12-11 20:01

I have a checkbox on a page that is disabled until some criteria is met.

In an effort to give the user some information, I\'d like to have a \'tool tip\' display whe

6条回答
  •  醉梦人生
    2020-12-11 20:26

    $('.mycontainer').delegate(':checkbox:disabled', 'click', function(e) {
        //do stuff
    });
    

提交回复
热议问题