Cosec
Cosec2y ago

✅ – Cosec – 16-19 Oct 5

how to have a css/js selector using both id and name?
5 Replies
Cosec
Cosec2y ago
ok got it. It is by
#id[name="nameInthatID"] { //styling }
#id[name="nameInthatID"] { //styling }
reactibot
reactibot2y ago
This question has an answer! Thank you for helping 😄 If you have a followup question, you may want to reply to this thread so other members know they're related. https://discord.com/channels/102860784329052160/565213527673929729/1027253672645771336
ScriptyChris
ScriptyChris2y ago
Regarding id, it depends what specificity do you want. # gives the highest selector specificity, but if you do [id="some-id"] then whole selector will have lower specificity, because it will be ID vs attribute selector So #id[name="nameInthatID"] will get higher specificity than [id="id"][name="nameInthatID"]
Cosec
Cosec2y ago
I see 🤔
reactibot
reactibot2y ago
This thread hasn’t had any activity in 12 hours, so it’s now locked. Threads are closed automatically after 12 hours. If you have a followup question, you may want to reply to this thread so other members know they're related. https://discord.com/channels/102860784329052160/565213527673929729/1027253672645771336