Johnny G Junior's NoteBook Treasures: December 2011

Saturday, December 31, 2011

Understanding JQuery STuff

Adventuring into JQuery.

1. Download Jquery...
2. Then to use it in your html. you need this in your <-head->





This will import it into your page.

3. you need to set up an area now to create a script. this will also go in your <-head->







4. Next this is a sample of a click caller. this goes in your <-script->

$(document).ready(function(){
$(this).addClass("price").click(function(){
alert("Hello World! "); });
});


this says... we register a "ready" event for the document.

use the class called "price" add a click to it and when clicked, pop up a message "Hello World!".

FIN!