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.
jquery-selectors
9,006
questions
-1
votes
1
answer
70
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 ...
1
vote
0
answers
57
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 ...
2
votes
1
answer
257
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: ...
1
vote
0
answers
30
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 ...
1
vote
1
answer
103
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 ...
0
votes
2
answers
474
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 ...
2
votes
2
answers
309
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 ...
-1
votes
1
answer
1k
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 ...
0
votes
1
answer
3k
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-...
0
votes
1
answer
171
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 ...
0
votes
1
answer
963
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 ...
0
votes
2
answers
269
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....
-1
votes
1
answer
402
views
Get outerHTML text in div
I am working on Google Tag Manager and I am having trouble getting the outerHTML text.
<div class="a"><i class="b"></i> email </div>
I tried multiple ways ...
1
vote
0
answers
36
views
Using dropdown to fill a field instead of listening
I have had some help from here and a few places to build out a wonderful email signature generator. Currently any filled in info goes into the live preview. What I am trying to do now is fill out the ...
0
votes
1
answer
18
views
BooKIT Joomla 1.5 nth-of-type Select option
I have an old website using Joomla 1.5 and a booking componant called BooKIT.
My customer asked me to remove one of the booking items but there seems to be no way to remove them.
A form shows all the ...