HTML Element Selectors In JavaScript | JavaScript Tutorial In Hindi #14

  Рет қаралды 226,829

CodeWithHarry

CodeWithHarry

Күн бұрын

Пікірлер: 191
@shresthaa8005
@shresthaa8005 2 жыл бұрын
I have completed C, Html, CSS, and Js in one video as well. you have cleared all my doubts. Thankyou.
@ajazamin9843
@ajazamin9843 2 жыл бұрын
kuch zyada nahi hua
@DTPHAMANKUMAR
@DTPHAMANKUMAR 2 жыл бұрын
@@ajazamin9843 She is Papa ki Pari .She can do Anything😂😂😂😂
@abulkalamasif1270
@abulkalamasif1270 2 жыл бұрын
@@DTPHAMANKUMAR 😂😂
@safaridi0786
@safaridi0786 5 ай бұрын
good
@sushilprajapati2234
@sushilprajapati2234 4 жыл бұрын
great explanation of the element selector ....
@danishrajvala9684
@danishrajvala9684 3 жыл бұрын
I must say that this JavaScript playlist is the best, we are really lucky that we are having this content for free, and from the great dev like you sir, I have tried many courses and institutes like Aptech but what you are teaching is more advanced and understandable just because of your teaching styles and hard work, I'm thanking you from the bottom of my heart for everything you have given to us, highly grateful to you and I appreciate your efforts, may God always keep you in his shelter where you keep achieving the success and may your good dreams and wishes come true. Kinds regards Danishraj love from Pakistan love you : )
@rahultirkey7950
@rahultirkey7950 5 жыл бұрын
*Thanks.* you cleared my doubts. You deserve more subscribers. Don't stop making tutorials.
@adigul8264
@adigul8264 4 жыл бұрын
May you live long i love your teaching style. Love you😘😘😘😙😙
@rajnisaini4195
@rajnisaini4195 2 жыл бұрын
Thank you so much sir. your videos are really helpful, well explained and understandable .
@shresthaa8005
@shresthaa8005 2 жыл бұрын
harry bhai it would be more better if have practice sheet in the tutorial as well
@tushar2627
@tushar2627 3 жыл бұрын
harry you are really amazing man your teaching style is soo nice thanqq for teaching us :-)
@safaridi0786
@safaridi0786 5 ай бұрын
good
@mdmatiurrahman7373
@mdmatiurrahman7373 4 жыл бұрын
best teacher ever.....
@rishabhdarji6818
@rishabhdarji6818 3 жыл бұрын
4:00 if anyone is getting their result as null, just to one simple thing. Cut this from header and past it just above . Your problem will be solved ;). Because when we put in the header the JS code gets loaded pretty quickly it may be not ready at that time, and by keeping it just above the JS code will get pretty much time to get proper load and our problem will get resolved.
@mokshpatel9783
@mokshpatel9783 3 жыл бұрын
thanks bro I was stuck their i really appriciated you
@ShubhamKumar-og5tm
@ShubhamKumar-og5tm 3 жыл бұрын
thanks bro for the help
@hamzahbanday8956
@hamzahbanday8956 3 жыл бұрын
you're a saviour bro...
@seztechnicalanalysis1674
@seztechnicalanalysis1674 2 жыл бұрын
Thank you brother
@hukumyadav8688
@hukumyadav8688 2 жыл бұрын
Thanks Man, You gained my respect :D
@passiveBhai
@passiveBhai 4 жыл бұрын
for style multiple element at once let a; a = document.querySelectorAll('.child'); Array.from(a).forEach(function (element) { element.style.backgroundColor = 'black'; element.style.color = 'white'; })
@X40Gaming
@X40Gaming 3 жыл бұрын
Console.log bhul gye 😂😂😂
@parthapaul4306
@parthapaul4306 3 жыл бұрын
we can use loops to print the elements
@vinayaksharma-ys3ip
@vinayaksharma-ys3ip 2 жыл бұрын
Thank You Harry Bhai!!!
@manojpatil2457
@manojpatil2457 3 жыл бұрын
When I select 'div' by queryselector('div') and then style it styles the entire texts in the 'div class =container' and it turns green and not just ' Welcome to code with harry'
@FlashGaming2018
@FlashGaming2018 3 жыл бұрын
That is because if you notice carefully, the html that harry created in the video has one div inside the body which the first div. All the h1 and other contents are inside that div. Now since document.querySelector('div') targets the first div in the document, therefore all other items also turn green because they are all contained inside the first div. Hope this helped! Happy Coding!
@manojpatil2457
@manojpatil2457 3 жыл бұрын
@@FlashGaming2018 Thank you yeah I got it after rewatching video .. Thanks for your response..
@ashishkaramchandani4247
@ashishkaramchandani4247 5 жыл бұрын
Best teacher Bhai please java ke tutorial le aao Like jisko java ke tutorial chahiye
@arindamdutta7369
@arindamdutta7369 4 жыл бұрын
sir how to make money step by step after seeing your videos . thoda roadmap dijie Please
@prashantchauhan2426
@prashantchauhan2426 3 жыл бұрын
thank you sir... love uh..
@learnandearn9620
@learnandearn9620 3 жыл бұрын
hello bhai
@aaryan9599
@aaryan9599 2 жыл бұрын
I am truly saying that you are the best !!!!
@pranjalgupta9427
@pranjalgupta9427 3 жыл бұрын
Thanks, bro..
@prayagbhimani3474
@prayagbhimani3474 3 жыл бұрын
Really you made it easy man !
@alsaqercos9945
@alsaqercos9945 2 жыл бұрын
Great hai Sir
@MIdWay1
@MIdWay1 3 жыл бұрын
Thanks sir
@learnandearn9620
@learnandearn9620 3 жыл бұрын
hello bhai
@megawatt6699
@megawatt6699 4 жыл бұрын
you are great bro
@sumansaha9824
@sumansaha9824 5 жыл бұрын
Harry Bro please python Django API's ke uppar video series banao please and thanks for this wonderful tutorials..... Ho sake to please reply karna ....
@natural_world_creation6982
@natural_world_creation6982 2 жыл бұрын
Very helpful video 👍
@moviehook9981
@moviehook9981 2 жыл бұрын
Thanx Harry
@ziyakhan4672
@ziyakhan4672 3 жыл бұрын
keep selected dependent dropdown by database after submit
@bug244
@bug244 3 жыл бұрын
Harry is very GOOD boy
@debjitpal9598
@debjitpal9598 2 жыл бұрын
In the line number 23 --- "When you enter sel.style.color ='green' " not only heading is green childs are also green but why ? as we are reading single line selector
@Karthik-kt24
@Karthik-kt24 3 жыл бұрын
Thank you very much bhai
@amjadhussain3258
@amjadhussain3258 2 жыл бұрын
just masterpiece
@alekhbhainsa4690
@alekhbhainsa4690 3 жыл бұрын
Very interesting video...thanks Harry Bhai
@satishbaghel7678
@satishbaghel7678 4 жыл бұрын
Sir please node is ke bhi tutorial banaiye please
@msbasera
@msbasera 2 жыл бұрын
Thank you bhai ❤️
@gabbarsingh6562
@gabbarsingh6562 2 жыл бұрын
For Future Reference: let element = document.getElementById("myfirst"); element.className; element.childNodes; element.parentNode; element.style.color="red"; element.innerText="Harry is a good boy"; element.innerHTML="Harry is a good boy"; let sel = document.querySelector('#myfirst'); document.querySelector('.child'); document.querySelector('div'); let elems = document.getElementsByClassName('child'); console.log(elems[0].getElementsByClassName('child')); getElementsByTagName('div'); 13:35 - converting HTML collection into Array
@anuragsharma3256
@anuragsharma3256 3 жыл бұрын
Excellent explanation, big fan!!
@ruchiray8557
@ruchiray8557 3 жыл бұрын
Amazing explanation
@shahmirnazir1902
@shahmirnazir1902 4 жыл бұрын
Sir koe website bta dein jahan sy humein sare properties mil jaen you told in this video.
@Jai_Shree_Ram____469
@Jai_Shree_Ram____469 3 жыл бұрын
Code with Harry website
@tech_with_rahul
@tech_with_rahul 3 жыл бұрын
thank you brother
@rishabhjain911
@rishabhjain911 2 жыл бұрын
thankuu. Meoww
@creationofislam
@creationofislam 5 жыл бұрын
Please make a video about bash ...sehll language
@hemantagrahari4298
@hemantagrahari4298 4 жыл бұрын
Useful lecture
@rajbannasa7662
@rajbannasa7662 3 жыл бұрын
thank you so much sir
@shubhamsharma-ro2gr
@shubhamsharma-ro2gr 4 жыл бұрын
Awesome video
@engineerbhai7642
@engineerbhai7642 5 жыл бұрын
Excellent video
@ayazaamur
@ayazaamur 3 жыл бұрын
You are the best teacher Harry Sir
@maheshsonsale1241
@maheshsonsale1241 4 жыл бұрын
Uncaught TypeError: Cannot read property 'style' of undefined
@time-is-dead
@time-is-dead 3 жыл бұрын
Bro use ` this symbol and work only on div
@AnitaGupta-zs2el
@AnitaGupta-zs2el 3 жыл бұрын
Can uh plz explain properly its still showing uncaught error
@ShubhamKumar-og5tm
@ShubhamKumar-og5tm 3 жыл бұрын
cut the script tag and paste it just above the closing body tag. It will work
@sagarhaldar7559
@sagarhaldar7559 4 жыл бұрын
Thank you 💝
@asadstech4879
@asadstech4879 3 жыл бұрын
hatts off harry bhai..... keepit up love from pakistan
@__BrijeshPatel
@__BrijeshPatel 2 жыл бұрын
hi harrybhai Uncaught TypeError: Cannot read properties of null (reading 'style')
@princesukhala7106
@princesukhala7106 2 жыл бұрын
Done done again
@shubhamjain164
@shubhamjain164 2 жыл бұрын
What is the difference between document.getElementById and document.write I am having different outputs when using this on loops
@rohanthapa5790
@rohanthapa5790 2 жыл бұрын
document.querySelectorAll(); yeeh wala bhi toha hae nah ??
@sahinurislam7247
@sahinurislam7247 3 жыл бұрын
nice
@devashishnigam5971
@devashishnigam5971 3 жыл бұрын
What is the difference between parentElement and parentNode? console.log(document.getElementById("child1").parentNode, "parent node"); console.log(document.getElementById("child1").parentElement, "parent element");
@Jadon09
@Jadon09 5 жыл бұрын
Nice video
@ajazamin9843
@ajazamin9843 2 жыл бұрын
05:16 sir why you had same div with two ids first id = 'myfirst' and then id = 'first' its confusing.
@supriyakore2379
@supriyakore2379 2 жыл бұрын
*Thanks *
@RoshanKumar-xs9yx
@RoshanKumar-xs9yx 5 жыл бұрын
Tq sir...
@mohdamir3767
@mohdamir3767 2 жыл бұрын
Array.from(document.body.getElementsByTagName("p")).forEach(function(ele){console.log(ele.innerText)})
@jassrajput890
@jassrajput890 3 жыл бұрын
now getting interested
@gaurabgogoi2848
@gaurabgogoi2848 2 жыл бұрын
need help, I am creating a table, I want to show the table, and from each row, there will be a edit button, so how to use that edit button in each row, for different person's data. how to do undefined table's getElement, I mean please help
@ishtiaqahmad4118
@ishtiaqahmad4118 4 жыл бұрын
Good explained I.A.Siddiqui Karachi
@taranjeetsingh3629
@taranjeetsingh3629 3 жыл бұрын
Sir what do u mean from access the playlist?
@shubhamh7451
@shubhamh7451 3 жыл бұрын
Dekho pura playlist, bass
@kushjaiswal9364
@kushjaiswal9364 5 жыл бұрын
Sir plz make c++
@JustForProgrammers
@JustForProgrammers 4 жыл бұрын
Best Bro
@atharvthombare2963
@atharvthombare2963 3 жыл бұрын
Harry bhai getelementbyid ki output null aa raha hai Plz solution 🙏🙏 Btw video is fantastic
@prakharrana8384
@prakharrana8384 2 жыл бұрын
script ko head m add maat kro body m kro nhi ayega null
@apurvesrivastava5597
@apurvesrivastava5597 2 жыл бұрын
document.querySelector('.someid') giving me null in console but if i am using class name after dot it is giving me that element in console and getting same result with #someClsName
@SuryanshSingh-f8d
@SuryanshSingh-f8d 5 жыл бұрын
Luv uh bruh😘😍
@uttamsharma1859
@uttamsharma1859 2 жыл бұрын
Sir when i use let it gives unexpected identifier error and when i use const it doesn't give ??
@countryball-orgn.
@countryball-orgn. 7 ай бұрын
How to use childnodes
@manantyagi6905
@manantyagi6905 3 жыл бұрын
love to learn
@Babarkhan-qo1jx
@Babarkhan-qo1jx 2 жыл бұрын
any one can explain me why we use JavaScript to change things in our css? we can change it directly from our css?? why we use this selector to change our css??
@nishantprajapati9974
@nishantprajapati9974 4 жыл бұрын
harry bhai itni language ati h apko or apse syntex bhi mix nhi hote kyu?
@lovelife-xm2xj
@lovelife-xm2xj 2 жыл бұрын
How to change inner html content dynamicaly
@muhammadhamza1073
@muhammadhamza1073 4 жыл бұрын
sir g yha tak ham chezen dakhi but ye smjh nai arha k ye web main inak kia use ha
@nidhi8775
@nidhi8775 Жыл бұрын
Failed to load resource: the server responded with a status of 404 (Not Found) pls help me with this error i have my files connected properly.
@artistnahiart3728
@artistnahiart3728 4 жыл бұрын
solution vdo kahan hai?
@maheshsonsale1241
@maheshsonsale1241 4 жыл бұрын
Uncaught TypeError: Cannot read property 'style' of undefined please tell about this
@enthoharsh7403
@enthoharsh7403 4 жыл бұрын
same problem with me !
@ujjwalkumar9216
@ujjwalkumar9216 4 жыл бұрын
Use window.onload= function() { Your code } This will solve your problem. It was happening with me too.
@pawankohad6702
@pawankohad6702 3 жыл бұрын
put , before tag
@mayurikale5134
@mayurikale5134 2 жыл бұрын
I would like to see you on Sundeep maheshwari stage..
@saadzafar2390
@saadzafar2390 3 жыл бұрын
I have only one script tag in my html file. But document.scripts is consoling that I have 2 scripts ? Why ?
@muhammadsheryar9329
@muhammadsheryar9329 3 жыл бұрын
where can i find practice questions?
@rimeshsapkota7335
@rimeshsapkota7335 3 жыл бұрын
let element =document.getElementById("print").innerText="Email format is matched"; element.style.color="pink"; css is not working why???color of text is no changed when i used above code
@mayankjaiswal1492
@mayankjaiswal1492 3 жыл бұрын
try element.style.color='red' (not red)
@surajpatil3247
@surajpatil3247 3 жыл бұрын
let element = document .getElementById("myfirst"); ->>> it returning null value. why?
@akash-lz2dq
@akash-lz2dq 3 жыл бұрын
mila bhai solution ?? mera bhi yhi aaa rha hai
@VikasKumar-fw2fo
@VikasKumar-fw2fo 2 жыл бұрын
Sir mere laptop may query. Selector nahi chll raha baar baar error show krr raha hai can you tell me about problem of solution
@anjalimoon619
@anjalimoon619 3 жыл бұрын
sel= document.querySelector('div'); sel.style.color= 'cyan'; console.log(sel); aisa krne pe mere baki div ke v color change ho rhe hain.
@anjalimoon619
@anjalimoon619 3 жыл бұрын
sir please meko thoda clear kre qki jb aap v kr rhe ho toh usme v baki div ke v color change ho rhe hain .
@mihirkumarsrivastava9389
@mihirkumarsrivastava9389 3 жыл бұрын
@@anjalimoon619 exactly same question here, did you get the answer please reply.
@bhavingadhiya3844
@bhavingadhiya3844 3 жыл бұрын
All turns green
@Sanjeev8880
@Sanjeev8880 3 жыл бұрын
@@bhavingadhiya3844 becoz all the div is inside the
@Sanjeev8880
@Sanjeev8880 3 жыл бұрын
@@anjalimoon619 becoz all the div is inside the
@darshkarmarkar540
@darshkarmarkar540 4 жыл бұрын
Hiii sirr I am getting this error while running the javascript code in the console Tut16.js:41 Uncaught TypeError: Cannot read property 'getElementsByClassName' of undefined at Tut16.js:41
@pawankohad6702
@pawankohad6702 3 жыл бұрын
put , before tag
@amolchopade7649
@amolchopade7649 2 жыл бұрын
Why i get this error [HTTP/1.1 404 Not Found 0ms]??
@ShivaSingh-gg1yx
@ShivaSingh-gg1yx 2 жыл бұрын
i am not getting output in console after writing let element = document.getElementById('myfirst'); console.log(element); O/p in console is 'null' why is this happening? if you know please let me know
@ShivaSingh-gg1yx
@ShivaSingh-gg1yx 2 жыл бұрын
yes i have already created 'myfirst' id in html file
@xcr6436
@xcr6436 2 жыл бұрын
Use myFirst instead of myfirst.
@dilipsunar99
@dilipsunar99 4 жыл бұрын
Why is mine showing undefined in the console .. please reply
@sagarhaldar7559
@sagarhaldar7559 4 жыл бұрын
show me the code
@dilipsunar99
@dilipsunar99 4 жыл бұрын
@@sagarhaldar7559 done bhai 😊 but I need to using the console itself and not the text editor 😊Thanks for the concern
@rajalgi6039
@rajalgi6039 3 жыл бұрын
Bhaii live server nahi chal Raha hai .js file mein
@milanbehera509
@milanbehera509 4 жыл бұрын
bhai...jab v mein document.getelementbyId(myfirst); likhta hun tab console mein *null* show kyun kqr raha h?
@nishantprajapati9974
@nishantprajapati9974 4 жыл бұрын
myfirst ko quotes m likho
@godupliftsyou5426
@godupliftsyou5426 4 жыл бұрын
Sometimes application need some time interval to load webpage, Please follow below code, setTimeout(function(){ let element = document.getElementById('myfirst'); console.log(element); }, 2000); Hope it should work for all !!
@sohilpathan7168
@sohilpathan7168 4 жыл бұрын
@@godupliftsyou5426 it worked bro thank you so much!!!
@jaydesai1176
@jaydesai1176 2 жыл бұрын
@@godupliftsyou5426 But Why Bro ? Why we can not use only document.getElementById('something');
@achainsanei4714
@achainsanei4714 5 жыл бұрын
bhai me ne ap ke video Facebook whatpp pe shere kar diya
@karanval5268
@karanval5268 3 жыл бұрын
Can anyon explain 14:13?
@ashishsahuT
@ashishsahuT 3 жыл бұрын
👌👌
@karanval5268
@karanval5268 3 жыл бұрын
Sorry, I forgot, what was foreach?
@life2hell7503
@life2hell7503 5 жыл бұрын
Sir xampp use nhi ho pa rha h uski vjah se mai aage Ka kaam nhi kr pa rha hu kya kru
@saulgoodman9405
@saulgoodman9405 2 жыл бұрын
as a non css user, it was really hard to understand this tutorial.
@NipunRawat08
@NipunRawat08 2 жыл бұрын
sare div green hue hai isme
@sohilpathan7168
@sohilpathan7168 4 жыл бұрын
sir whenever i am typing let element = document.getElementById("myfirst"); it showing null in console why????
@jenilgandhi9941
@jenilgandhi9941 4 жыл бұрын
koi problem hoga typing me id me myfirst ka synatx check kar lo
@soumitrosaha8793
@soumitrosaha8793 4 жыл бұрын
I also faced the same problem and could not get what is the problem is. And I’m gonna make sure that there were no typing or syntax errors but the problem is not fixed. Does anyone have any suggestions regarding THIS issue?
@desmondmiles8474
@desmondmiles8474 4 жыл бұрын
"myfirst" ko "myFirst" try...reply if it solves the problem... let element = document.getElementById("myFirst");
@sagarhaldar7559
@sagarhaldar7559 4 жыл бұрын
console.log(element); ye karlo , fir ayega sab kuch..
@pawankohad6702
@pawankohad6702 3 жыл бұрын
put , before tag
These CSS PRO Tips & Tricks Will Blow Your Mind!
8:48
Coding2GO
Рет қаралды 425 М.
Как не носить с собой вещи
00:31
Miracle
Рет қаралды 1,5 МЛН
didn't manage to catch the ball #tiktok
00:19
Анастасия Тарасова
Рет қаралды 34 МЛН
Who’s the Real Dad Doll Squid? Can You Guess in 60 Seconds? | Roblox 3D
00:34
Promises in Javascript
10:23
Piyush Garg
Рет қаралды 58 М.
JWT авторизация. Основы JWT - механизма.
6:45
Хочу вАйти
Рет қаралды 13 М.
I built 10 web apps... with 10 different languages
14:23
Fireship
Рет қаралды 1,6 МЛН
DOM introduction in javascript | chai aur #javascript
18:26
Chai aur Code
Рет қаралды 230 М.
Новый CSS! 2024
18:06
Как пройти в IT?
Рет қаралды 27 М.
How to Create Entire Website with ChatGPT (No Coding)
15:15
Website Learners
Рет қаралды 613 М.
Should You Learn Multiple Programming Languages? (The Truth)
8:29
CodeWithHarry
Рет қаралды 110 М.