Section 6 - jQuery


This is one of the libraries which add a lot of functionality, yet makes it available in a way that often makes it easier than writing our own code.


It is certainly well worth a closer look, because there is no point in reinventing the wheel, if jQuery makes the functionality you are looking for readily available.


jQuery is also used a lot in conjunction with CSS and with AJAX.


A good start showing off jQuery is to let jQuery tell us itself, with a little help of pure JavaScript, whether it is loaded or not.


JavaScript is telling you that jQuery is NOT loaded!


The p element that showed 'jQuery was not loaded' in the previous session, was given an additional class name, and replaced text by jQuery commands. The classname was used in the CSS file to turn the message green.




You are logged in with userName = anonymous


Not signing up and not logging in leaves you with username 'anonymous'. Nothing wrong with that, but it will make it difficult to find back your own content in blogs and comments and to leave your email address for us to answer individual questions you leave for us in the blogs or comments.