So anyway, at the end of the jQuery course, I was feeling so confident that I got this big idea for a program. On the signup page for my Party Parrot Fan Club site, I wanted to add a multiple choice question asking for the user’s favorite party parrot. Then, depending on which one they chose, I wanted a gif of that parrot to appear. Simple, right?
Yeah, not really.
Here’s what the first bit of code I wrote looked like:
And, nothing happened. I’m used to that by now. I played around with it in class on Thursday night, and a massive amount of Google searching didn’t bring me any closer to the solution.
This was a later version of my code, written after reviewing the Treehouse course:
Then it was pointed out that I’d forgotten a parenthesis. So I fixed it. But still no success.
Ultimately, one of the mentors suggested this solution, using the change event and slideToggle method, which I’d never seen:
And it worked!
Well, sort of. Notice that that’s not a coffee parrot, plus there are a couple other issues to work out. But when you click a button, a thing happens. And that’s progress.
My point in telling you all this is that it took a LOT of patience and persistence just to get a silly thing like this to work. And I had to have several people help me. Trying to let go of the idea that I should be able to solve everything on my own.
To get it to work like I envisioned, I’ll still have to add gifs for all the choices in this list and get those to work when clicked too. I’m trying so, so hard to be patient with myself here. I feel like I’m doing a lot, but have little to show for it. I want beautiful websites and useful, functional applications in my portfolio, and I don’t have either of those. Yet.
Flexbox layouts were also in the syllabus this week, but I finished that course a while ago and covered it in my last post, so there’s not much new to say on the project front. Coming up this week is Bootstrap, so I’m guessing that might change the look of my project significantly. We’ll see.
Meanwhile, if any developers are reading this, I would love to hear about your beginning projects and how long it took you before you felt even kind of confident in your work.