If i named class 'first' then what happened? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

If i named class 'first' then what happened?

<div /"> <div class="test"/> <div class="first"> ... $("div.first")

18th Jan 2017, 8:16 AM
Uguumur Oldokh
Uguumur Oldokh - avatar
1 Answer
+ 3
Nothing particular... 'first' is a valid classname in html/css, so it does also in JQuery ^^
18th Jan 2017, 8:42 AM
visph
visph - avatar