Questions tagged [queryselector]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
2answers
56 views

How to grab particular data from a website to Excel with queryselectorall

I am trying to transfer data from a website to Excel: With my code I get all of the values of COL1: 10117 Berlin AND Feydelstr AND Entfernung Nur für Kunden sichtbar But how do I get access just to ...
0
votes
2answers
22 views

use querySelectorAll on dynamically added element

I want to query newly added div having memberCard class call but queryselectorall being static , i am not able to do so .How to resolve this problem? var elementsToShow = document.querySelectorAll('....
-1
votes
3answers
35 views

Failed to execute 'querySelector' on 'Document': 'button[data-id=“purple-button” disabled]' is not a valid selector

How do I query for an element with multiple attributes? I.E. I want to select the element based on its element type, data-id, and whether it is disabled or not. Here is the html: <button disabled=&...
1
vote
2answers
33 views

Use post variable with querySelector

I'm facing an issue trying to scrape datas on the web with puppeteer and querySelector. I have a nodeJS WebServer that handle a post query, and then call a function to scrape the datas. I'm sending 2 ...
0
votes
1answer
18 views

Getting Null when trying to query the path to my button element

Issue: I want to return the button Element within my document that matches the specified selector, in this case ".comment-body__interaction--delete" but keep getting a return of null every ...
0
votes
2answers
33 views

What is the difference between document.querySelector('#button') and document.getElementById('button') [duplicate]

I am. A beginner of JavaScript and am confused that what is the difference between document.querySelector('#button') and document.getElementById('button')? For example, function myFunction() { ...
0
votes
1answer
35 views

Javascript querySelector doesn't select injected html elements? [duplicate]

I'm building a laravel ecommerce project. I lazy load product images with bounds.js plugin and everything works as expected. However when products are filtered page is updated with ajax and new ...
0
votes
0answers
9 views

Auto-filling a html form based on a URL

I'm trying to auto-fill the below form based on the URL using queryselect. I'm not sure how to get it working. https://www.demoURL.com/form&option=opt1 So it'd use something like that ^ and then ...
0
votes
2answers
19 views

queryselector for a class button

I have <button class="btn btn-primary w-100 w-md-25">Submit</button> and I want to put the button on the below queryselector. (document.querySelector(".form.row.pt-4 button[...
0
votes
3answers
43 views

QuerySelector with specified index in Javascript (like [1])

How do I make: document.getElementsByClassName("first")[1].getElementsByClassName("second")[2]; but with querySelector? My guess would be: document.querySelector(".first[1] &...
0
votes
0answers
30 views

Issue with multiple slideshows on javascript (JavaScript)

Problem statement I am trying to add Areal Alien's image slider to each search result. When I show 1 search result the slider works: CodePen 1 result However, when I show multiple search results, the ...
0
votes
1answer
52 views

document.querySelector is not selecing the elements and throws ReferenceError: document is not defined

I would really appreciate the help. document.querySelector doesn't select the elements and throws ReferenceError: document is not defined - on vscode console, and Uncaught ReferenceError: input is not ...
0
votes
2answers
44 views

Store multiple radio button values in an array Javascript

I would like to store my test answers in an array in javascript. I created 50 questions with for loop, the user can choose between 4 radio buttons(answer). How could i store these answers in an array? ...
0
votes
1answer
42 views

Why is the tilde ~ not working in Javascript querySelector but works in CSS? [duplicate]

How can I select the sibling of textarea tag pre in javascript's querySelector? I have been able to select it in CSS using the ~ selector. But that doesn't seem to work in Javascript? I know I can use ...
0
votes
2answers
30 views

Python Selenium - How to locate and add data in textarea which is under #shadow-root (open)

I am trying to locate and enter data in the text area for below code. But it does not locate the element. HTML : <label _ngcontent-c8="" class="form__label form__label--bottom&...

15 30 50 per page
1
2 3 4 5
13
久草视频新免费_日韩视频一中文字暮_欧美三级片