Questions tagged [jquery-selectors]

Selectors can be used in jQuery to match a set of elements in a document. Most CSS selectors are implemented, as well as a set of custom ones.

Filter by
Sorted by
Tagged with
0 votes
0 answers
28 views

How to target a context object in console?

I want to try and target the "length" inside this context object - so if the length is 0, i want it to perform an action. I put a console log in there just for this example. I would create a ...
Ripley E's user avatar
0 votes
0 answers
27 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="...
Nikolay Kholin's user avatar
-1 votes
2 answers
47 views

Iterate Form with queryselectorall to put input value into array

I Have an html page and function is JS I noticed that myForms is a NodeList with two elements, form is 0 or 1, How do I retrieve the input values for each form? I also tried with var query = '' + ...
DevMD's user avatar
  • 3
0 votes
0 answers
38 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 ...
xhammer's user avatar
  • 145
0 votes
1 answer
106 views

JavaScript Click does not work on Google translate image

I try to code JavaScript extension for translate an image which is in the windows clipboard. Site page web: https://translate.google.fr/?hl=fr&sl=auto&tl=fr&op=images An image is already ...
OliveLion's user avatar
0 votes
1 answer
51 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 ...
Avsof web apps's user avatar
0 votes
1 answer
15 views

Find nodeList nested <span>

I'm trying to web-scrape for the first time in order to get the best deal out of my holiday. (My intention is to have a Telegram Bot that everyday checks a specific day in the hotel calendar and sends ...
Scheggia's user avatar
0 votes
0 answers
43 views

ApplyTransaction Remove from AG Grid React does not remove the row from the DOM right away. document.querySelector still returning something

Hi I am trying to disable a button based on if a css class name is present in the DOM or not, using document.querySelector(); If document.querySelector('invalid-cell') returns a value the button ...
greenway's user avatar
  • 111
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>...
NUman's user avatar
  • 1
0 votes
1 answer
18 views

Active class for single class element jQuery

I have these buttons which are actually p elements in a grid and they all have the same class. I would like to change the color of the p element which the user clicks on. How can I add an active class ...
shimmyshimmyya7347's user avatar
0 votes
1 answer
23 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:...
fafa's user avatar
  • 87
0 votes
0 answers
19 views

Get <select> elements with a non-empty value selected in jQuery

With jQuery to select all checked checkboxes in a form it's quite simple: $('input:checkbox:checked'); I also need to get all <select> elements with a value selected. Currently I am doing this:...
But those new buttons though..'s user avatar
1 vote
1 answer
39 views

jQuery next Input in table

I have a series of input and select elements in a table: <table id='tbl-edit-company' class='tbl-form tbl-contact-form'> <tbody> <tr> <td><...
Edward's user avatar
  • 23
-1 votes
1 answer
28 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 ...
Michael Blach's user avatar
0 votes
1 answer
51 views

querySelector returns null even though id exists

I am using node.js and typescript to build a website. In one part of the code I am trying to acces an Element with the ID 'likeForm'. This did not work. This is the furthest I got: in movies.ts: ...
Animor Romina's user avatar
0 votes
1 answer
34 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 ...
Avro_Abir's user avatar
  • 166
0 votes
1 answer
26 views

Targeting child elements belonging to a specific class using JQuery :nth-child(n) selector

I am trying to apply some CSS classes on a specific html button using JQuery. The button that I am trying to target is the 2nd button in the #left-well div. All the buttons in my html have the class ...
Satyam Rai's user avatar
0 votes
1 answer
14 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 ...
redaxe's user avatar
  • 3
-1 votes
1 answer
55 views

How to select multiple individual table columns with jQuery?

Currently, my jQuery selector for selecting the 2nd and 7th column is: $("table tr td:nth-child(2) span:contains('something'), table tr td:nth-child(7) span:contains('something')") Is there ...
finefoot's user avatar
  • 10.2k
0 votes
1 answer
147 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 ...
B4THC4T's user avatar
  • 49
0 votes
0 answers
59 views

Get text of selector, put into if statement

I'm trying to get the text of this selector (the upload date of a video in the search result): uploadedago: #metadata-line > span:nth-child(4) the text is this: "uploaded x time ago". ...
user avatar
0 votes
0 answers
202 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 ...
bakedmcgaked's user avatar
0 votes
2 answers
33 views

I cannot select same class elements with query selector all. I use the VS code editor

In javascript file, I select same class element with query selector all like this... const buttons = document.querySelectorAll(".button"); In html file, I wrote like this... <!DOCTYPE ...
Steven Mine's user avatar
0 votes
0 answers
44 views

How do I add event listener to these carrousel buttons?

I followed a Youtube tutorial to the letter and it seems I can't make the carrousel work, I don't really know why though. I've been trying to solve it with different identifiers like other classes, ...
Maatichap's user avatar
0 votes
1 answer
88 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 ...
Mehul Kumar's user avatar
0 votes
1 answer
56 views

How do I find child level element without finding grandchild element with querySelectorAll?

Starting from <ul id="tree_view"> <ul id="tree_view"> <li> <span class="box">Node 1</span> <!-- recursive template --> ...
Peter H's user avatar
  • 13
1 vote
0 answers
152 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 ...
rTx's user avatar
  • 11
1 vote
1 answer
34 views

Cant Load JS And Stylesheet

I downloaded argon-dashboard the free version to the best of my knowledge, I incorporated it to the system I made. Now it cannot load the JS and stylesheet to a specific page. the link is like this ...
Rex Zednelab's user avatar
0 votes
0 answers
28 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]....
Line One's user avatar
0 votes
1 answer
40 views

How to select specific paragraph number using JQuery?

I want to select the second paragraph, and can I do that using JQuery but without using an id for the paragraph? Something like accessing a specific node. I tried using $("#p[1]") or $("...
Niki Rich's user avatar
0 votes
2 answers
69 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>...
Tolga's user avatar
  • 46
0 votes
1 answer
17 views

jquery, get the "upper closest" reference from a no direct sibling

look at this structure: i need to get the "upper closest" hidden input reference from wherever i click pay attention: the starting point (where i click) and the target are not direct ...
pinale's user avatar
  • 2,102
0 votes
0 answers
54 views

fill input puppeteer and it disappears automatically

I can't fill input in puppeteer. The above seems to work only once and I have also tried printing the value of the input which is still correct. And the next images show it completely without the text ...
Huynh Quy's user avatar
0 votes
0 answers
49 views

Visual Studio Code jQuery Selector Preview on Hover

When I hover on a CSS selector, I can see the preview of what it selects (below, first image). I'd like it to work on jQuery selectors as well. Is there a way? I searched through Stack Exchange ...
cagatay117's user avatar
0 votes
0 answers
25 views

jQuery returning internal error on .children method

I am trying to use jQuery to select specific children of a selected element with the statement: nod.ChildElems = ele.children('div[id]'); ChildElems is a new attribute of a well-defined object. ele is ...
Jim F.'s user avatar
  • 21
-1 votes
1 answer
63 views

How to select React elements in React.js?

I rendered some elements with a functional component and I'm trying to select some of the elements to log them out to the console, but it logs out null. is there a special method used to select react ...
Vsimdy's user avatar
  • 1
0 votes
0 answers
9 views

Problem with jquery autocomplete multiple feild

basically I want there to be 2 input options. if you select the country in the first input option , the name of some City in that country will appear in the 2nd input option.
Junayed Rahman Faiaz's user avatar
1 vote
0 answers
48 views

How to Filter for data-rel Value on Load with jQuery

The filter on my website needs to have a default value on load. My main JS script uses this, in case it's useful for the solution: window.addEventListener('DOMContentLoaded', event => { //code to ...
Twofreid's user avatar
2 votes
1 answer
168 views

How to get css islolation random string

I use CSS isolation. This is the output html code: <div b-1yc1hoca3 class="test">Text</div> .test { border: 1px solid red; } Random string that CSS isolation generates is: ...
Milad Ahmadi's user avatar
1 vote
0 answers
27 views

How do I make it so only one element is shown at once?

When the box is clicked on the insides for each of the boxes are shown, I only want one to show up at a time. function select() { const outside = document.querySelectorAll('.box') const ...
rocketryDude123's user avatar
0 votes
0 answers
216 views

Select next CSS element with same property in Power Automate Desktop

I am trying to automate changing data fields in a tree diagram where it is possible to have the same text in the title section. For this I am using "Click link on web page" with the selector ...
Tester Testerson's user avatar
1 vote
1 answer
65 views

Remap all jQuery Selectors to shadowRoot

Due to specifications by a customer we are trying to completely replace an iframe element by a a web component with shadow DOM. The plan is, that the website, which should be embeded, is fetched via ...
floorfi's user avatar
  • 41
0 votes
2 answers
315 views

How to get the td that contains tr with a button that has a specific attribute?

I'm trying to get all the tds in a table that contain a tr with a button to which I have specified an attribute ("boolean") with a true or false value. I need to get each td that have that ...
Alvarofb7's user avatar
2 votes
2 answers
179 views

jquery `.find()` use with `:not` selector is missing some elements (the selector is affected by the `.find()` invoking element, but it shouldnt)

problem I have an element $(elt_Main) (<span id="a">) I call $(elt_Main).find(selector); on it With a selector selector = ':not(span span)'; But jquery is not giving out all the child ...
Nor.Z's user avatar
  • 701
-1 votes
1 answer
702 views

How can I change between a Login/Sign up Form?

I'm doing a project where I have to create a website. Currently I am making the Login/Sign up Form, however I don't know how to change between them using a link. This is my html code for it: <div ...
Iolanda's user avatar
0 votes
1 answer
2k views

How to use Tom-select dynamically?

There is a table contains Tom select input in my modal. And also I made an add button to add Tom select input. So when I click the add button, I clone the that contains tomselect input, but the tom-...
강성빈's user avatar
0 votes
0 answers
140 views

How to displaying different image repeatedly with query selector on javascript?

I want to displaying images as a questions which show itself with specific image link attached on questions. How's the const img and let image should be written? currently it produce blank page ...
Adr''s user avatar
  • 3
0 votes
1 answer
149 views

puppeteer QuerySelectorAll not working is vs-code Node.js

const puppeteer = require("puppeteer"); const fs = require("fs"); const chalk = require("chalk"); const outputFile = "./swatHotelsDetails.json"; (async ...
Johnfranklien's user avatar
0 votes
1 answer
552 views

Multiselect dependent dropdown for country and state

kindly help how to make this multiple option select for country and state, below code in single select is working fine but i need to make this multi-select dependent dropdown. below code is complete ...
ravi's user avatar
  • 1
0 votes
2 answers
166 views

Javascript class add/remove only working once

I'm trying to write some js that adds an extra class of .active to an already existing class called .option on click. As well as removing said .active class from anoy div with both classes .option....
Jaizen's user avatar
  • 1

1
2 3 4 5
181