In previous chapter I showed you how to install and test if Jquery working or not.
Today I will show you how to work with JQuery.
Example 1:
+ You have a button name “Click me” on screen. This button have id = “btKissMe”
+ When you click this button. An message will show to you and say that “I love you so much” ^^
So, What will I do?
Don’t worry I will show you how to do that immediately.
In document ready you put event click for button id = “btKissMe”
$(document).ready(function(){ $( "#btKissMe" ).click(function() { alert("I love you so much"); }); });
Run browse and test.
Good Job!