I’m happy today that I taught myself how to write and properly execute my first actual block of jQuery code. It’s a simple Show/Hide toggle text function, but took some doing to get it to act properly on the Theaters and Screening Series page of the Underground Film Journal.
As I mentioned before, I’m tackling jQuery with the book WordPress 3.0 jQuery by Tessa Blakely Silver and, happily, the first block of code she encourages readers to write is the .slideToggle function. I say “happily” because that’s the first thing I wanted to learn how to execute on the Journal!
Adapting the code in the example in her book into my own real-world practice took some extra Internet research and figuring out the correct HTML structure. Actually, figuring out that proper structure was the biggest stumbling block.
The nice thing now, though, is that I feel like I can “read” a simple line of jQuery and I now have the basic building block to go on and learn more complicated functions. Also, I can now apply the Show/Hide toggle to other pages and features of the Journal where I think it will be beneficial.
These first steps are always real exciting, though!