Clicking a disabled input or button

后端 未结 9 1457
星月不相逢
星月不相逢 2020-11-28 13:12

Is it possible to click on a disabled button and provide some feedback to the user?

HTML:


         


        
9条回答
  •  旧时难觅i
    2020-11-28 14:11

    $('#idButton').on('click', function() {
        // The button is disabled but this will be executed.
    });
    

    The above example works with JQuery for disabled buttons that need the event to be captured.

提交回复
热议问题