We are going to cover the jquery module from codecademy. This will provide you with a basic understanding on how to use jquery and integrate it into your webapp.
Quick guide to terminology
- An element is HTML tag such as <p>, <h1> or <ul>.
- Each element can have an id e.g. <p id=”firstParagraph”>. This allows jquery to target a specific element rather that just all <p> elements.
- When an event is triggered the following jquery code could be executed:
$(“firstParagraph”).html(“This is Higher ComputingScience”);
$(“secondParagraph”).append(“This is the new content.”);