This question has been flagged
2 Replies
7226 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.