Lab 9: Libraries & jQuery
Challenge
Working with your partner, experiment with jQuery. Remember:
- Use the JavaScript console to test all the parts of your program and see if anything went wrong
- Experiment with new commands in the JavaScript console to see how they work
- Add comments to your function to say what it does
- Make it neat using lots of whitespace.
- tyle in programming matters, so use indentations and spaces where necessary.
- Remember to put a semicolon at the end of every line.
Problem
jQuery makes so many things so much easier. No more document.getElementById which I never can remember.
Talking to a student who said they wanted to redesign their page to look "more professional," I remembered that I always wanted to try to create a "dark/light" switch you see on some pages. But I thought it would be more fun to have a "professional/party" switch instead.
Results
I decided to demo writing this program with the whole class. Let's see how that goes. We're off to the races.