Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
8271 Prikazi

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

Avatar
Opusti

Have you found any solution?

Best Answer

Hi Ranjith,

xml

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

js

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


Avatar
Opusti

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

Related Posts Odgovori Prikazi Aktivnost
1
jul. 19
4749
2
avg. 22
6593
1
jul. 19
3016
0
nov. 17
6390
4
sep. 17
25170