Skip to main content

Questions tagged [queryselector]

The tag has no usage guidance.

queryselector
0 votes
1 answer
32 views

How to detect if Youtube ad is currently playing with JavaScript

In JavaScript I need to detect if YouTube ad is currently playing, my code is not working for me. This is a single page personal project no need to use YouTube Data API. function ...
DL Studio's user avatar
  • 4,227
0 votes
0 answers
14 views

How to use data attribute values as the context for mark.js?

I'm trying to use Mark.js to find a search value in data attribute values. When a match is found, I'd like to highlight the attribute's element. In the HTML below, I want to highlight .terms, when a ...
ad3hner's user avatar
  • 11
0 votes
0 answers
53 views

How to send a HTTP request including additional Information with VBA to this public website and scrape data from it to Excel?

I need a calculated value from this public Website: land guidelines First I enter a complete address in the search field, e.g. "Swinemünder Straße 12, 22147 Hamburg", after the address has ...
Jasco's user avatar
  • 227
2 votes
0 answers
51 views

querySelector does not work as expected in Vue components

I'm new to vue.js and I've encountered a problem that I can't fix. In my SelectField.vue component I have written the following method: getModalBodyElement() { return document.querySelector('....
michael.brilz's user avatar
1 vote
1 answer
40 views

in Firefox querySelector with attribute while finding path in svg gives error

My code is working well in Chrome but not in Firefox. When I search path element using querySelector with attribute Firefox gives an error that path is not found. defs.appendChild(svgGradient); const ...
Muhammad Amir's user avatar
0 votes
1 answer
45 views

How to extract data from this website with VBA queryselector

I need to extract the 'href' from the html code of this website that is public and without any login: (To access the page via xmlhttp, it needs a REFERER, that is posted as REFSTRING) Public Website ...
Jasco's user avatar
  • 227
0 votes
2 answers
37 views

How to select all the input elements except for the ones within a specific element

I want to select all the inputs in a form except those within a specific element. Consider the following sample HTML: <form id="myForm"> <input /> <input /> &...
Salih Kavaf's user avatar
  • 1,097
1 vote
4 answers
67 views

Use wildcards to trace an a.href in the querySelectorAll NodeList

Let's say that instead of looking at the ID, I want to select all a.href elements that contain (a piece of) this example: if document.url is "www.youtube.com". var youtubeID = document....
Mediamash's user avatar
0 votes
0 answers
6 views

Issue accessing a sub element

I've got an application that manages real estate transactions, amongst other things. When an offer comes in basic information is collected; buyers name, selling agent name, email, phone, etc. . . If ...
ShangHugh's user avatar
0 votes
0 answers
42 views

If I only have access to a Node, how can I achieve something like Element.querySelector?

Assume you're not able to access an Element type, only a Node type. (I have this constraint because I'm using inject(ElementRef) in Angular, but there are other cases where it might happen) A Node ...
Tovar's user avatar
  • 363
0 votes
0 answers
18 views

Replacing Text using Javascript

const text5 = document.querySelector('#p3'); text5.textContent = "Hello World"; div#Can span#Orig { display: show; } div#Can:hover span#Orig { display: none; } div#Can span#p3 { display: none;...
Andy's user avatar
  • 1
-1 votes
2 answers
43 views

document.querySelector is returning null for a very simple beginner problem. I have no idea why [duplicate]

html is basically boiler plate <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="...
user34539's user avatar
2 votes
0 answers
38 views

Finding elements in Flask + Jinja

I am trying to create an flask app that uses Jinja templating. I have a navbar that contains links with the class name 'nav-link'. They are in base.html. I dynamically create index.html. Later I try ...
Code Master's user avatar
0 votes
1 answer
33 views

In Javascript, how can I querySelector to get the innerHTML excluding one of the inner sibling divs

I have the following html: <body> <span class="comment"> EXAMPLES: <p><i>Example 1</i> - <a href="https://example.com/1">...
sudoExclamationExclamation's user avatar
1 vote
1 answer
154 views

Tidio Custom Chat Button Not Showing Chat Widget

I have been going round and round on this. I can't seem to get the button to open the chat widget on my website. It works fine in the codepen I have. <button class="chat-button">Live ...
lostInTheTetons's user avatar

15 30 50 per page
1
2 3 4 5
32