You get a bonus - 1 coin for daily activity. Now you have 1 coin

How do you select an element with two classes in jquery?

Practice




How do you select an element with two classes in jquery?

you need to select the elements of the first class first, and then filter them by the second class you need
for example

$(".class1").filter('.class2')

thanks, neat

Comments

To leave a comment

If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

Lectures and tutorial on "Scripting client side JavaScript, jqvery, BackBone"

Terms: Scripting client side JavaScript, jqvery, BackBone