Skip to Content
Menu
This question has been flagged
2 Replies
8828 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
5342
2
aug 22
7174
1
júl 19
3497
0
nov 17
7018
4
sep 17
25840