Skip to Content
Menú
This question has been flagged
2 Respostes
8231 Vistes

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

Avatar
Descartar

Have you found any solution?

Best Answer

Hi Ranjith,

xml

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

js

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


Avatar
Descartar

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

Related Posts Respostes Vistes Activitat
1
de jul. 19
4693
2
d’ag. 22
6529
1
de jul. 19
2976
0
de nov. 17
6352
4
de set. 17
25113