Похожие чаты

Hi. I have some css selectors... When I append new

elements to body these selectors don't select the elements. Is there any ways to solve the problem?

10 ответов

5 просмотров

You mean you use querySelector()?

`-47 48 Автор вопроса
Thomas
You mean you use querySelector()?

Nope. I have a css file like this: #IV { } #IV img { } #IV .title { } I want these selectors to be applied to the new elements

` 47 48
Nope. I have a css file like this: #IV { } #IV i...

You can't have multiple elements with the same ID in one document

`-47 48 Автор вопроса
Thomas
You can't have multiple elements with the same ID ...

I don't have such a thing. I just append a container to the body when the page is being loaded. But the appended elements don't get selected by css selectors

Thomas
id="IV"

Only ONE element can have that per page

`-47 48 Автор вопроса
Thomas
Only ONE element can have that per page

I know that. You think I have multiple id="IV"? No I don't

`-47 48 Автор вопроса
Thomas
If you don't this should work fine

Hmmm... Maybe I've forgotten something ... !

Thomas
Only ONE element can have that per page

Yes, but it doesn't error or not append for those reasons; browser decides to make it work anyway

Похожие вопросы

Обсуждают сегодня

@LGCYMan @JustinKKW Q/A List 1. this part confuses me on #8: "From there, a bridge between erc20 LGXY and erc20 LGXY will be out once that swap is closed." does this mean ...
Sig | LGCY | BattleVerse L1 | BitWin
1
How do I get FrxEth? Need it to execute a contract
Abdullah $BTON
18
Did @Beeker really get banned? That's ridiculous. He's one of the few left here with half a brain and you might not always like his narrative @dgb_ycagel , but he often keeps ...
Leroy Gerrits
1
Anyone here suffers from unexplained aural migraines, who would be up for talking for a bit? Doesn't *have* to be aural, but I am not asking about headaches, I mean actual mi...
Martin Rys
55
async login(req: Request, res: Response, next: NextFunction): Promise<void> { try { const { errors, input } = await RequestValidator(LoginRequest, req.body...
. .
1
Я тут за тем, чтобы задать вопрос, так как не знаю ассемблер, учу с/с++. Короче, насколько дорога операция перехода в функцию при ее вызове? Дело в том, что в с++ есть макросы...
Максим Рябцев
12
A couple thoughts from a random internet stranger: 1. If you want this project to gain traction you cannot keep being negative. If I just came here after finding out about Kd...
Eric Wild
46
Hi Guys, I just end stake and there is shortage of the actual tokensamount and that shortage  appear eth stake in token column, any idea what is going on, meta mask scam our h...
Ivan Creates
10
А какие чаты вообще в ходу? Auto aim? И что еше
do you think you're better off alone? А
13
What website can you interact with the chip process?
Firstname Lastname
9
Карта сайта