Definition and Usage. The. class selector selects all elements with the specific class. The class refers to the class attribute of an HTML element. The class attribute is used to set a particular style for several HTML elements. Note: Do not start a class attribute with a how to find element by class in jquery I wanna know how to get element by class name, this is html code Why dont you simply use jquery? Solution to your problem: What you want to do is impossible. Child will always inherit opacity of the parent. This makes allot of sense to me personally.
The find() method returns descendant elements of the selected element. A descendant is a child, grandchild, greatgrandchild, and so on. The DOM tree: This method traverse downwards along descendants of DOM elements, all the way down to the last descendant. how to find element by class in jquery