jQuery detect click on disabled submit button

后端 未结 10 962
日久生厌
日久生厌 2020-12-03 06:20

Fiddle: http://jsfiddle.net/ugzux/

As you can see, I have a form with a disabled (via javascript) submit button.

I want to be able to bind a click event to

10条回答
  •  南笙
    南笙 (楼主)
    2020-12-03 07:04

    $(document).on('click', '.wrapper-of-disabled-button', function(){
      if ($(this).find('button.disabled').length > 0) {
        // Do your magic on the parent -> $(this)
      }
    });
    

    Here you go ;)

提交回复
热议问题