Комментарии:
Bro is writing padding-left with hyphen true. Shouldn't it be paddingLeft
Ответитьsir yeh code ni run ho raha
ОтветитьThank you 😊....great job💪🏽
ОтветитьEZ Media i put the same code as you show var text = document.getElementById("para1").style.color = "red" but it does not change the color of the text
what should do
Mine does not work if you don't specify the type attribute of the button tag. Why is yours working even without specifying the type of your button?
ОтветитьI'm studying JS at the minute, and I've scoured the internet for getElementById videos for too long. I could never get my head around it. I was left with more questions than answers mostly, and it's been getting me down.
But this... this just made it seem easy. Thank you SO much. 👍🏼
Hey man EJ, How's it going? Thought I'd just post a comment here to mark my track and let ya know my pitstop lol. Anyways, i've been making progress slowly as you can see, started off from HTML and now here, your way of explaining goes all the way to the top mate. Also, ive noted that you havent replied to any comments recently, i know these videos were made ages ago lol. I just hope that you are safe and sound especially with this pandemic. Thanks again for making these videos and helping people out, means alot buddy. Stay safe and wish you the very best in all your endeavors. Cheers
ОтветитьThanks for the video, but we don't have to initiate the variable. We can do that without that as well.
ОтветитьI’m come from vietnames
ОтветитьHow can I get your contact?
ОтветитьI don't understand. Why is "border-left" in CSS "border-left" in javascript?. Why isn't it "borderLeft" in javasscript?
ОтветитьMany thanks
ОтветитьI would also like to know why the var text is used here.
Ответитьtank you
ОтветитьNot working for me.
Even I copied both the codes from pastebin but still not working
Thanks soooooo much... you saved so much of my time and FRUSTRATION. thanks again.. god bless.
Ответитьwhat am I doing wrong!?!?!?
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<p Id="para1">sample text</p>
<button onclick="go();">submit</button>
<script type="text/javascript">
var text = getElementById ("para1").style.backroundColor = "red";
</script>
</body>
</html>
is "border-left" following camel case now?
because i already tried this"borderLeft" and it's working