Селектор :submit


Содержание:

submit selector

Описание: Selects all elements of type submit.

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

The :submit selector typically applies to button or input elements. Note that some browsers treat <button> element as type="submit" implicitly while others (such as Internet Explorer) do not. To ensure that markup works consistently across all browsers and guarantee that it is possible to consistently select buttons that will submit a form, always specify a type property.

Дополнительные замечания:

  • Because :submit is a jQuery extension and not part of the CSS specification, queries using :submit cannot take advantage of the performance boost provided by the native DOM querySelectorAll() method. For better performance in modern browsers, use input[type="submit"], button[type="submit"] instead.