Lab #2 - My First jQuery

Within this lab, we implement JavaScript and jQuery into a webpage to make it interactive. This was our first lab where we used jQuery to perform actions similar to JavaScript. The actions we were to perform were an alert, prompt, writing in the document, confirm and editing something in the document. 

First I added a bio into my page along with a picture to prevent it from looking empty. Then I created two buttons, one named JavaScript and another named jQuery. Within the code, I used jQuery on the jQuery button to perform the given actions and on the JavaScript button, I did the same thing but with JavaScript. The only difference between the two was that after the JavaScript button was clicked, it referred to JS and also gives a welcome message from JavaScript. For the jQuery button, it did the same thing but displayed jQuery instead. 

These skills are important for a web designer so they can use alternatives to doing similar things from JavaScript in jQuery instead. Some might find one easier while the other is more complicated. The objective of jQuery is to make JavaScript more easier by allowing you to directly select an element on a page and then edit it in some way. So web designers who get used to jQuery could do complicated things on their webpages more simpler and can get the attention of more users easier.

Comments

Popular posts from this blog

WBL Workshop #6 Interview Skills

CTE Expo Reflection Journal

Lab #12 Reflection