1.

How To Show The Alert Message On Button Click In Jquery?

Answer»

Jquery is one of the most POWERFUL libraries what we have and it provides event HANDLING. This scenario can be handled by “ONCLICK” of the BUTTON. Below is the code snippet –

<input TYPE=”button” id=”myButton” onclick=”alert(‘Hi’)” />

Jquery is one of the most powerful libraries what we have and it provides event handling. This scenario can be handled by “OnClick” of the button. Below is the code snippet –

<input type=”button” id=”myButton” onclick=”alert(‘Hi’)” />



Discussion

No Comment Found