Jquery select by role.
-
Jquery select by role querySelector('[aria-label="Message Body"]'); // A list of matching elements (empty if none do): var list = document. a, p, link, ) you can use jQuery选择器允许您选择和操作HTML元素。jQuery选择器本节包含属于最新jQuery JavaScript库的选择器的完整列表。所有选择器都分为几类。 Data attribute reference. 4. d, . – BoltClock Commented Jul 25, 2012 at 9:56 W3Schools offers free online tutorials, references and exercises in all the major languages of the web. An id should be unique within a page, so you should use the #id selector when you want to find a single, unique element. Hot Network Questions Mechanism of cyclopropane ring formation from malonate ester The querySelector() method returns the first element that matches a CSS selector. We will explore some basic selectors along with the help of examples. (ignoring the fact that the element types are different). jQuery select modal.