jQuery detect click on disabled submit button

后端 未结 10 939
日久生厌
日久生厌 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:05

    css

    [disabled]{
    pointer-events:none;
    }
    

    html

    
    

    You can try this for button click

    $('.button').click(function(){
    // do your code here.
    });
    

提交回复
热议问题