跳至內容
選單
此問題已被標幟
2 回覆
8350 瀏覽次數

I want to show onclick alert message on button click in javascript. How to do that?

頭像
捨棄

Have you found any solution?

最佳答案

Hi Ranjith,

xml

<button class="your-Class" ......... />

js

$('.your-Class').click(function(){
     alert();
});


頭像
捨棄

It seems very simple ... but it doesn't work for me (I'm using odoo 12.0 C.E.

相關帖文 回覆 瀏覽次數 活動
1
7月 19
4809
2
8月 22
6678
1
7月 19
3078
0
11月 17
6492
4
9月 17
25280