English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Seletor :header do jQuery

Seletor jQuer

:header escolhedor escolhe todos os elementos de título (<h1> - <h6>)。

Sintaxe:

$(':header')

Exemplo

Escolher todos os elementos de título (h1Até h6):

$('document').ready(function(){
  $(':header').css('background', 'coral');
});
Testar e Ver‹/›

Seletor jQuer