Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
5 lines (3 sloc) 355 Bytes

Change Text with Click Events

When a click event happens, we can use Ajax to update an HTML element with the following code $(".message").html("Here is the message");

This tells jQuery to use the class message as the selector and to that, change the HTML to have the string provide, we can also ass custom html elements wrapped in quotation marks.

Something went wrong with that request. Please try again.