Add a style with js
Hi everyone
I realise a page with a title and a button when I will clicked on the button a text should appear
But I don' t understand why the text is not appear
JS:
my css:
can I have a idea about what is going wrong ?
thanks by advance
3 Replies
Maybe it is because #lire1 is overriden the specificity?
Id's have more prioriority than classes
You can use [id=“lidel”]{visibility: hidden; opacity:0] instead to keep the specificity even with the class. Or give the element a class of .lidel too and use that in your stylesheet
https://discord.com/channels/436251713830125568/1196876248643817622/1196876248643817622
thanks for your message is a code I just found an internet I was trying to add js on it ...I use class