JavaScript Tutorial in Hindi for Beginners [Part 42] - Query Selector in JavaScript

preview_player
Показать описание
#Javascript #Tutorial #Hindi

In this video i will talk about Query Selector in JavaScript

The querySelector() method returns the first element that matches a specified CSS selector(s) in the document.

Note: The querySelector() method only returns the first element that matches the specified selectors. To return all the matches, use the querySelectorAll() method instead.

If the selector matches an ID in document that is used several times (Note that an "id" should be unique within a page and should not be used more than once), it returns the first matching element.

Return Value: A NodeList object, representing the first element that matches the specified CSS selector(s). If no matches are found, null is returned. Throws a SYNTAX_ERR exception if the specified selector(s) is invalid.

Join this channel to support Tech Gun:
Рекомендации по теме
Комментарии
Автор

Your video is different
And Great Quality

Thank you so much - Bro

mehboobkhan
Автор

Thanks a lot sir for this awesome tutorial😇😇

bhagirathiverma
Автор

Hi Biswajeet, I thoroughly followed your videos to learn HTML and especially CSS, because you have made/kept the training material simple and easy to understand...thanks a ton!!.
For this JS series which I have just started, so far it has been great!! but to add all I would request if you can create a Index of contents entirely (covered topics and yet to covered topics) would be of great help because this would always create an element of curiosity and ease of access. Thanks again and God Bless!!
n.b.: Apologies if I have made a spell error with your name.

RakeshKumar-rpyb
Автор

Sir, your teaching way is too perfect for beginners 👍👍👌😊

devraj_jaiswal
Автор

thank you sir you help me alot thanks man thanks
And Love from Pakistan...
Sir

Mrchotto
Автор

really nice explanation only what's needed

zeffali
Автор

Sir ma or koi JS Tuts ni dekhonga only ap ka course karonga or abhi ma Html ka course kar raha hu during course ap ko comment kar raha hu kindly deep ma samjha de ta k JS ma kuch masla na hu hamy dill se thank you enjoying coding in Ramdan love from Pakistan (Looking for React and React Native course )

hamaaritech
Автор

I am following you sir thank for making

aungnaing
Автор

Sir you are great please upload advance react JS tutorial please sir

lovelymusic
Автор

Sir thoda jldi upload kijiye videos bcz basic complete hone m 6 months lg gya sir esse hi chlega toy javascript k apka course 2 saal m bhi complete ni hoga sir isliye plz apse request h thoda jldi upload kijiye

vishalsharma-qfez
Автор

Good morning sir please resolve my problem error query or class selector nhi chal rahe

raikotisunny
Автор

Sir, i am getting null... can you please help me

aryalekshmi