When using CSS or jquery to select elements. Very often we need to make a && or | | Operation.
jquery or CSS | | Operations are often used. Also very easy, is separated by commas.
Selector1,selector2,selectorn
For example, if we want to select a div or span, we can select the element that satisfies the condition by $ ("Div,span").
&& in CSS or jquery. Most of what I've seen is done in class, and I don't know if it's just that way.
. ClassName1.className2.classNameN
For example, if we want to select a div, which must have the 2 classes of Lily and Lucy, it can be selected by the. Lily.lucy.
Unique && operations in jquery, not limited to class attributes, are more flexible
[Selector1] [Selector2] [Selectorn]
For example we want to select a div, the class of this div is Angle,id is aty_id, then can use $ ("div[id= ' aty_id '][class= ' age ']")
Css/jquery element selector && and | |, selector logic operation