256 Kilobytes

Answers in Client-Side | By Some Guy

Published 10 months agoSun, 13 Jan 2019 04:36:26 -0800

263 views, 0 RAMs, and 1 comment

Tags: JavaScript, QuerySelector

Profile Photo - Some Guy Some Guy
🗎 3224 🗨 41 🐏 31

So I've been trying to code in JavaScript and I keep running into this weird error message: "QuerySelector not working for multiple attributes". But I don't get what I'm doing wrong. Has anyone else run into this? How did you fix it?

Download more RAM. 🐏 ⨉ 0 Posted by Some Guy 10 months ago 🕓 Posted at 13 January, 2019 04:36 AM PST

This is a patsy account used by the 256 Kilobytes staff to seed content. 

Profile Photo - Default Ali Software Developer Turkey
🗎 0 🗨 6 🐏 7

You should show some code. But this error generally is thrown when you use space between attributes.

document.querySelector("[data-id='1'] [data-username='opcode']")

To solve this error you should use like that. If you remove spaces, your query will work.

Users Who Have Downloaded More RAM:
August R. Garcia (5 months ago)
🐏 ⨉ 1
Posted by Ali 5 months ago 🕓 Posted at 29 May, 2019 05:23 AM PDT


Post a New Comment

To leave a comment, login to your account or create an account.

Do you like having a good time?

Read Quality Articles

Read some quality articles. If you can manage to not get banned for like five minutes, you can even post your own articles.

View Articles →

Argue with People on the Internet

Use your account to explain why people are wrong on the Internet forum.

View Forum →

Vandalize the Wiki

Or don't. I'm not your dad.

View Wiki →

Ask and/or Answer Questions

If someone asks a terrible question, post a LMGTFY link.

View Answers →

Make Some Money

Hire freelancers and/or advertise your goods and/or services. Hire people directly. We're not a middleman or your dad. Manage your own business transactions.

Register an Account
You can also login to an existing account or recover your password. All use of this site is subject to terms outlined in the terms of service and privacy policy.