The o shortcut, step 7


#1


i dont understand what i am doing wrong,


7 - The o shortcut
#2

@jedimaster94 add/remove/toggleClass() don't use a dot (.) before the class name, because they know they're getting a class as an input. It's only when you've got multiple options (#id, .class, tag) that you need to differentiate the class by using a dot :)


$('.x') vs $('x') When do I use period?
#4

How exactly did you get removeclass add class there's absolutely no mention of that in any lessons prior to that. This is what is frustrating, you ask how to do A and B and somebody gives you an answer with C D and F.


#5

Could you explain your problem in further detail?


#6

@antimatter_

They're jQuery functions. JQuery is a JavaScript library that makes some stuff easier.

I'm pretty sure there was, but there doesn't need to be as long as they explain the stuff in that lesson.

Jedimaster94 has a different question than you. I answered your question here. If that answer isn't helpful to you, please ask for clarification/extra details over on your topic.
But expecting a post answering a different question than what you want to know to answer your question is ridiculous.


#7

@antimatter_ and @emgo_dev, if removeclass and addclass aren't covered yet, i recommend to the jquery course first, before doing making a interactive website course.

If you have questions, please make your own topic. Otherwise the forum is getting a huge clutter


#8

Great thank you......


#9

You're right, thank you.


#10

ok, so that's why.

Thank you. I'm going there now.


#11

Yes, before make a interactive website you should do html + css and jquery, so you are familair with the fundamentals of both languages.


#12

A post was split to a new topic: Stuck on The o shortcut (exercise 7)