…IF I click on button it should change to I am executed … but Button (click) is not working … can anyone help me were did I make a mistake …
TQ
Hello Sailaja,
Looks like you missed double-quote pairs for onclick
attribute
Still Not working … changed … onclick=“execute1()” …
Please recheck, make sure it’s onclick
, in screenshot you provided is onlick
(typo).
You may also provide the code in simple text, rathe screenshot? thanks.
Tq so muchhhhhhh … became blind
… for this stupid mistake i wasted so much time …
Also please keep your attributes like following:
<button type="button" onClick="execute1()"> Click me </buttom>
that may not be relevant but it’s a good practice to keep the " stick to the =
TQ …
I Just started doing programming on JS basics … Need to learn more and fast …
1 Like