JavaScript #2 - Show or hide div based on click event

JavaScript #2 - Show or hide div based on click event

Code with Bibek

3 года назад

32,827 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@CodeWithBibek
@CodeWithBibek - 23.11.2020 23:11

Thank you everyone. Please share and subscribe my channel to support me and get other web tutorials. 🙂

Ответить
@viralshyral6270
@viralshyral6270 - 02.02.2023 09:58

not wOrking in mine.. actually I am using a different Html file
pls help

Ответить
@ChocolatePink29
@ChocolatePink29 - 31.12.2022 02:34

Thank you so much, you saved me!

Ответить
@BalencedVeil717
@BalencedVeil717 - 17.10.2022 09:50

Thanks for explaining so easily.

Ответить
@suleimanhassan8579
@suleimanhassan8579 - 09.09.2022 21:28

Thanks alot bro you really helped me
You just earned a subscriber

Ответить
@apna_shorts
@apna_shorts - 07.08.2022 19:01

Nice way to explain 😊 thank you sir

Ответить
@tranxuanhieu
@tranxuanhieu - 13.07.2022 15:43

Thank you!!!!!!

Ответить
@aakashdeepmondal1480
@aakashdeepmondal1480 - 01.02.2022 23:55

Thanks. It was too much helpful

Ответить
@shintafiaa
@shintafiaa - 09.12.2021 09:47

alhamdulillah, thanks for sharing brother.

Ответить
@shiftfree7497
@shiftfree7497 - 13.07.2021 11:31

if i hide the div in default the button needed two click to work

Ответить
@dr.vojislavhadzimilic3649
@dr.vojislavhadzimilic3649 - 01.01.2021 21:08

what's the music behind ?

Ответить
@anselmenounagnon4560
@anselmenounagnon4560 - 03.12.2020 23:47

hey Thanks for the tutorial...
I'm pretty new in code writing. I need help in writing a js code to hide "request a demo" button in the menu section whenever the "FAQ" page is opened. I add an event listener to my function which actually remove the button at a click on the "FAQ" just that, but when the "FAQ" page finish reloading the button appears. Here is my code:

var btnShow = document.getElementById("menu-item-19711");
var btnHide = document.getElementById("menu-item-19788");

btnShow.addEventListener("click", function() {
btnHide.style.display = 'none';
});

Can you help?

Ответить