Селектор по классу (“.class”)


class selector

Описание: Selects all elements with the given class.

  • Добавлен в версии: 1.0jQuery( ".class" )

    class: A class to search for. An element can have multiple classes; only one of them must match.

For class selectors, jQuery uses JavaScript's native getElementsByClassName() function if the browser supports it.