Hello everyone!
Lab 3 was a basic follow the instruction lab. We got an outline from MIT and we had to read and understand what tag is used for what and how javascript works and some basic jquery.
In lab 3, I did many exercises which mainly focused on jQuery syntax and selectors and click event handler. For the first exercise, I placed some text on a div, then I made an input box and a button. The input asks for a color and the button replaces all the instances of the color with the color from the user input. For the button, I, first created a variable called button and set it equal to the id of the button in the HTML to make it an object. Afterwards, I made an on-click function using the button object to store the color of the input box and then store the value of the current colors to element. Lastly, I selected all the instances of the current color by using the element object and then changed the value of it to the value of the input. That is the first exercise. These skills are important for a web designer because they can teach us to use jQuery which is a JavaScript library with different. jQuery makes using event handlers, selectors, animation and Ajax much simpler to use. In the long term, learning this is beneficial and time-saving for web designers.
Lab 3 was a basic follow the instruction lab. We got an outline from MIT and we had to read and understand what tag is used for what and how javascript works and some basic jquery.
In lab 3, I did many exercises which mainly focused on jQuery syntax and selectors and click event handler. For the first exercise, I placed some text on a div, then I made an input box and a button. The input asks for a color and the button replaces all the instances of the color with the color from the user input. For the button, I, first created a variable called button and set it equal to the id of the button in the HTML to make it an object. Afterwards, I made an on-click function using the button object to store the color of the input box and then store the value of the current colors to element. Lastly, I selected all the instances of the current color by using the element object and then changed the value of it to the value of the input. That is the first exercise. These skills are important for a web designer because they can teach us to use jQuery which is a JavaScript library with different. jQuery makes using event handlers, selectors, animation and Ajax much simpler to use. In the long term, learning this is beneficial and time-saving for web designers.
Comments
Post a Comment