So I need to duplicate the “tabs” function and just give it a new name in the JS. But I’m not sure what parts of the function I need to copy to duplicate it. My attempts have not worked right so far.
Can someone take a quick look at my Codepen, please?
I did expand the JS in my Pen, so it should be more readable there than on the original site. But I didn’t include my HTML and the CSS mods, because the JS was all I needed looked at.
I’ve added both of those to the Pen now. I hope that gives you a better picture of what I’m trying to do.
When you click to the third tab to the right, you’ll see my second tab set added. But those tabs won’t switch to their Divs, because they don’t have a function named “tabs2” yet. I was thinking they’d have to have their own function, because they have their own styles. Maybe I’m wrong there. Like I said, I’m not a JS wiz. =)