开发者

How to raise the button command event from JavaScript ?

开发者 https://www.devze.com 2023-04-04 13:40 出处:网络
How can we fire th开发者_如何转开发e button command event from the JavaScript. Not the BUTTON onclick event.Using jQuery:

How can we fire th开发者_如何转开发e button command event from the JavaScript.

Not the BUTTON onclick event.


Using jQuery:

$("#button").click(function(e) {
    e.preventDefault();
    //Actions here
});

#button is the id of the button

0

精彩评论

暂无评论...
验证码 换一张
取 消