All language subtitles for 178 Selecting Elements with jQuery.en_US

af Afrikaans
ak Akan
sq Albanian
am Amharic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranรฎ)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu

Original subtitles

Now the most basic thing we need to do when we're creating our web sites is to select the elements in

our web page in order to manipulate it at a later date.

Now we saw that we can do this in Javascript by saying something like document.querySelector

and inside here we would add the selector that we want to select,

right?

So for example if we wanted the h1 then we can simply say querySelector("h1").

Now if we were to write this in jQuery then we can remove all of this part and instead only have the

dollar sign which is short for jQuery.

So now we're using a jQuery method to select our h1, and you can see how much shorter it is.

Now this works very similarly to querySelector in the sense that inside the parentheses we're specifying

the CSS selector that we would use if we were to select our elements in CSS.

And this is because it's the most flexible, the most adaptable, and also can be very specific.

So for example it allows us to say things like we want the h1 that has a class of title, or we want

the h1 that's nested inside a div with the id of header.

And that works exactly the same.

There's no changes there.

But what the querySelector allows us to do is when we're trying to select all of our buttons, if you

remember from previously, we had to say something like document.querySelectorAll, and then we

would select the button in here.

Now, with jQuery, the dollar sign again replaces all of this and it will select all of the buttons

on screen and there's no difference between selecting one or selecting many.

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.