Skip to Content
Menu
This question has been flagged
2 Replies
7443 Views

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

Avatar
Discard

Have you found any solution?

Best Answer

Hi Ranjith,

xml

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

js

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


Avatar
Discard

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

Related Posts Replies Views Activity
1
Jul 19
3845
2
Aug 22
5659
1
Jul 19
2352
0
Nov 17
5441
4
Sep 17
23744