Hello, everyone!
In this lab, we had to make an accordion using jQuery, so there is hidden content. The directions we were given is to have 10 questions based on our favorite subject and when the user hover over the question, it reveals the answer. This sounds complicated to code, but its actually simple. jQuery UI gives the people the ability to make an accordion with one line of code instead of above 4. So in order for the accordion to work, we first had to link the js file to the document first. When finishing with that, we had to make a layout in order for the accordion to be made.
So first we have to make a div, then wrap another div inside, where the answer would be put in. This would need to be repeated for 10 times. Once that was done, then you would do the .accordion function. This lab has taught me the power of using jQuery libraries and the benefit of implementing them on my websites. This lab would help me develop as a web designer because in order to have a good website, the user must have a good experience.

Comments
Post a Comment