<!DOCTYPE HTML><HTML> <Head> <MetaCharSet= "Utf-8"> <title></title> <Scriptsrc= "Js/jquery.js"></Script> <Script> //Page Loading $(function(){ //set the event for the button version $('#btnok'). Click (function() {alert ('Hello World'); }); $('#btnok'). Click (function() {alert ("Hello jquery"); }); }); </Script> </Head> <Body> <inputtype= "button"ID= "Btnok"value= "point Me" /> </Body></HTML>
Common events (methods) in jquery
Blur (FN): Triggers when loss of focus
Change (FN): triggered when the state changes
Click (FN): triggers when clicked
DblClick (FN): triggered when double-clicked
Focus (FN): Triggers when the focus is taken
KeyDown (FN): triggered when the keyboard is pressed
KeyUp (FN): triggered when the keyboard bounces
KeyPress (FN): triggered when the keyboard is pressed
Load (FN): Trigger on page load, same function as Ready method
Unload (FN): triggered when the page is unloaded
MouseDown (FN): triggered when the mouse is pressed
MouseUp (FN): triggered when mouse bounces
MouseMove (FN): triggered when the mouse moves
MouseOver (FN): triggered when mouse hovers
Mouseout (FN): triggered when the mouse leaves
Resize (FN): triggers when resizing
Scroll (FN): Scrolling trigger
Select (FN): triggered when text is selected
Submit (FN): triggered when a form is submitted
Kill Thunder Dog jquery---Common properties in 18jquery (method)