3. Not using full .class name in jQuery?


#1

I'm starting to see that we use the .children('.description') to describe the class when the class is clearly
class= "description row"

Why is this? The same thing goes for "article current" to be referred in jQuery as just ('.article')


#2

Hello @saadayad,

In HTML, classes are separated by a space. So if you see something like

<div class="hello world">

what it actually means is that it belongs to two classes, Hello and World...


#3

Ah, yes, I should've known that!!! Thanks dude.


#4

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.