Skip to Content
Menu
This question has been flagged
2 Replies
9118 Zobrazenia

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

Avatar
Zrušiť

Have you found any solution?

Best Answer

Hi Ranjith,

xml

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

js

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


Avatar
Zrušiť

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

Related Posts Replies Zobrazenia Aktivita
1
júl 19
5938
2
aug 22
7454
1
júl 19
3682
0
nov 17
7364
4
sep 17
26148