A simple introduction to jQuery
jQuery - A small introduction
What is jQuery?
What can I do with jQuery?
Show me a simple example of jQuery
Next, the HTML text is created, if required.
Finally, the jQuery code is written.
The code, given below, will show a message which informs the user "jQuery says Hello!".
The HTML + jQuery Code
This is a sample HTML file created to demonstrate jQuery. Refresh this page to see again the message alert created through jQuery.
alert("Hello from jQuery!");
alert("jQuery says Hello!");
The function; it is called an anonymous function, since we have not attributed a name to it, will be called right at the moment when the html document has finished loading.
Congratulations! You have just now completed your first jQuery program.