3. Not using full .class name in jQuery?


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')


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...


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


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