Events are an important part of JQuery programming. They allow us to create websites that respond to user actions. In the language of the technology, we bind events to elements. Then those events are triggered by an action from the user.
Usually we create events and triggers in a streamlined set of JQuery syntax. You have already seen this in earlier lessons where you used the
$object.click() function. When you call
click() JQuery creates an event and binds it to $object. That event is then set to be triggered whenever the object has the click action performed on it. Let's do it again to jog your memory.
click() function to the clickMe button. When the event is triggered you should change the html of the changeMe div to say "I have been changed". Make sure it says exactly that!
Create the clickMe function using the code:
To change the html of changeMe you can use:
$("#changeMe").html("some text here");