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

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
5939
2
8月 22
7456
1
7月 19
3685
0
11月 17
7368
4
9月 17
26154