9,005 questions
0
votes
1
answer
40
views
Selenium on a jQuery select
I'm trying to get a select to work for the following div:
<div class="control-group generic-style clearfix">
<label for="Category">Category</label>
<...
0
votes
0
answers
47
views
Why do querySelector and querySelectorAll NOT iterate within an iframe?
This works:
parent.document.getElementById('iframeID').contentWindow.document.querySelectorAll('*[id^="elementId"]');
But this doesn't:
parent.document.getElementById('iframeID')....
1
vote
1
answer
2k
views
Why do I get a jQuery error about ':has() is not a valid selector' in the console?
In an ASP.NET MVC app, every single page that is opened throws the same error in Edge's console:
"stack": "Error: Failed to execute 'querySelector' on 'Document': ':has(*,:jqfake)' is ...
0
votes
2
answers
44
views
jQuery match element by id and class
I need to catch some elements in a form. The elements look like this:
<div id="wpforms-22603-field_17-container" class="wpforms-field wpforms-field-likert_scale" data-field-id=&...
1
vote
0
answers
276
views
document.querySelector() returns null for an existing element
I have issues selecting certain elements on a specific web page, querySelector returns null unless I first go through one of the parent element.
I tried chaining them together but still I eventually ...
-1
votes
2
answers
90
views
How can I select HTML elements which are rendered after DOM
I want to select OKBTN
let main = document.querySelector("#main");
let okBtn = document.querySelector("#ok");
function myAlert(title,msg,icon){
let card = "";
...
0
votes
1
answer
49
views
Finding closest input in same cell multiple spans
I am having a hard time getting the closest input to the button clicked. Everything is on the same table cell. The button is inside a span and the input is inside 3 level span? Please see for ...
0
votes
1
answer
52
views
Making a variable element from existing element / querySelector doesn't accept Variables
Im trying to select a child div from an array with the variable x
This is only a sketch to illustrate what I'm trying to do:
var x= 0;
trackN = document.querySelector( .track :nth-child(x))
But ...
0
votes
1
answer
333
views
Why does MutationObserver not detect nodes after a random point?
I am building a Tampermonkey user script. My actual script is a lot more complex but I am able to reproduce with the following example.
My script needs to work on Hacker News website.
For example on ...
0
votes
0
answers
326
views
How can I press Tab key and Enter key on browser using browser's console?
I want to press 2 buttons on the website one by one (by console code) but the click code doesn't work on one of them.
So instead, I am trying to make console code that presses Tab key and Enter key ...
1
vote
2
answers
60
views
Contains to return multiple values
I am using $('label:contains('something'); to get the label that contains 'something' in it
it works perfectly fine but I want to be able to handle more than one label how to do it
example:
HTML:
<...
0
votes
0
answers
51
views
Can't get value from child element using JQuery [duplicate]
I am trying to get the value of the third <p> element by referring to the id of its parent (id="pickup-searchbox"), but first I'm referring to the class of the first chid (class="...
0
votes
0
answers
74
views
How to use Javascript to expand Google PAA section?
I want to get the questions and answers from People Also Ask section of google using javascript (but inside a vb.net cefsharp browser using executequery). The section needs to be clicked to be ...
0
votes
1
answer
297
views
3cx change bubble button style in Wordpress functions.php - move up an async button and styling it after waiting fetch for async dom created
I have been struggling with the moving up of the chat bubble overriding my theme bottom login/out web app bar for 2 days:
Tryed to:
modify in Wordpress the child style.css and the functions.php
The ...
0
votes
1
answer
22
views
if we have two html elements named button how we can select the specific element and add style to it using javascript using query selector
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="style.css">
<title>...
0
votes
1
answer
35
views
Why this jQuery selector does not work for me?
I am trying to start an action everytime anything on the webpage else than specific object is clicked (menu "tree horizontal lines" button with class called "navbutton"), like this:...
-1
votes
1
answer
34
views
I am trying to write my stored input into a text element on the webpage
I am trying to write an extension that will search the webpage for a specific text element and write my const into it.
Some additional context: The process flow is essentially;
Pop up prompts user to ...
0
votes
1
answer
182
views
Call Back IntersectionObserver function for different different id with a single function
I want to create a entrance effects for element when it's on view port for different ids. I have 3 different ids #fadeAppear #slideAppear #zoomAppear with different css property. I want to call a ...
0
votes
1
answer
20
views
jQuery selector for setting a value of an input based on the current context
I have several inputs that I would like to offer the same jQuery Autocomplete function on.
When the user selects an option, I would like to set the value of the corresponding text box to the id of the ...
0
votes
1
answer
872
views
Clone select2 element in current version (4.0.13)
The essence of what I’m trying to do is already asked & answered here in this SO question. That question includes a fiddle and code that works in an prior release of select2 (v3.3.2), but does not ...
1
vote
1
answer
1k
views
Tampermonkey script does not see shadow-root (open) elements loaded by ajax
I am attempting to write a Tampermonkey script in Chrome for a website that I use all the time at work. I want the script to remove the disabled attribute on buttons of a certain class or title. This ...
0
votes
1
answer
131
views
Get URL from ahref using Javascript
<a href="#url" data-mc-cta="1" style="display:none">Link</a>
In this above a href code, a random URL will be generated by advertising network javascript ...
1
vote
0
answers
292
views
How to work with Tooltips using same ID or class name?
I am creating a page with ~50 lines where single click on a line will copy that line. And there's a tooltip for copy (on hover) & copied (on click).
Using the below code, I am able to copy each ...
0
votes
0
answers
46
views
Select elements by class using wildcard with jQuery/JS
I've seen answers dealing with selecting elements in CSS and I'm wondering if it is possible to perform the following with one line using a wildcard in jQuery?
jQuery('.youtube-video-1')[0]....
0
votes
2
answers
79
views
How can I select a child element, but separately in jQuery?
I've tried append ul into a div, but all ul append separately in div's. I want just child ul into div
Loops selected all ul's into all div's separetly.
<li class="first">
<a>...