3,866
questions
0
votes
0
answers
40
views
Jquery each SVG element
Here is my problem: I use the Wordpress image map pro plugin to generate plans with clickable areas in SVG. When the page loads, the HTML code is generated. I want to loop in jquery on the SVG ...
0
votes
2
answers
52
views
Get the each cell data from Table cell and Append to UL
I have a table with multiple rows (dynamically) with cell data.
I want to get the each row data and append to as list item
jsFiddle
Table
Desired Output:
Raj
English: 86
Maths: 73
Science: 68
...
-1
votes
1
answer
51
views
getJSON loop in Jquery dosent return all objects
I have a specific problem.
I have one JSON file that contains all JSON files in a folder.
I am iterating through that in a function where i create an array,
I take that array and send it to another ...
0
votes
1
answer
23
views
Is it possible to limit results from Svelte {#each} loop by a certain amount?
I'm using an {#each} loop to showcase data, but I'm curious if Svelte has a way to limit the results by an integer.
For example, if I had the following array and loop:
const object = [1, 2, 3, 4, 5];
...
0
votes
0
answers
16
views
How use each in cypress when element is detached from DOM after action [duplicate]
I have this cypress code and it works. I need to iterate through all the links on the page. After clicking on each link, a breadcrumb tab opens. After closing the tab, the page with the links returns.
...
0
votes
0
answers
19
views
copy elements between dataframes on condition of equality of other dataframe elements
To simplify, I have two similar dataframes:
df1 <- data.frame(a=seq(0, 100, by=5), b=rep(NA, times = 21))
df2 <- data.frame(a=seq(0, 100, by=10), b=seq(0, 10, by=1))
I wnat to assign df2$b ...
0
votes
2
answers
37
views
Getting the first element in multiple divs jQuery
Trying to apply css to the first element in multiple divs with the same class. In the example below, it works in the first div, but not the second one. What's wrong with this picture?
<script>
...
1
vote
4
answers
57
views
Can I get all hyperlinks that contain "@" then open them in new tabs?
I'm trying to open all hyperlinks on a page with link text that includes the "@" symbol.
Here's an example below
[[email protected]](https://stackoverflow.com/2342342352)
[[email protected]](...
1
vote
1
answer
43
views
Sass Each Map loop on modifier classes with a default variant
I'm having trouble to avoid having duplicate code.
I have an element which can have size modifiers to alter the appearance of the element: sm, md, lg. Let's say my element is called .element and my ...
0
votes
0
answers
31
views
How to replace each() in `if-statement` (each() is deprecated in PHP 8) [duplicate]
I try to keep an old PHP application running, and I need to upgrade from PHP 7 to PHP 8. I replaced a lot each() with foreach() easily, but I stumble on this code (I am not PHP programmer):
if (!(...
1
vote
1
answer
121
views
How to use dynamically updated variable in Azure Pipeline each statement?
Here is a simple Azure Pipeline that illustrates my problem:-
jobs:
- job: BuildAndTest
steps:
- script: |
echo "##vso[task.setvariable variable=nuGetPackagesToBuild;isoutput=true]...
1
vote
0
answers
144
views
Add variation price to WooCommerce swatches (using append)
I use a WooCommerce variation swatches plugin to convert the default select dropdown to clickable text buttons.
Now I would like to add the price of that variation to the swatch. The plugin does not ...
0
votes
1
answer
128
views
JavaScript function openFullscreen() , how to get it worked for several iframes on the page
On page I have an iframe with *.pdf file in src.
<div class="node--view-mode-full">
<p><iframe allow="fullscreen" allowfullscreen="" frameborder="0&...
0
votes
0
answers
61
views
how to get multiple pages from Web activity and For Each Activity in Azure Data Factory?
For Each Activity in Azure Data Factory Pipeline, how to copy the data from multiple pages?
enter image description here enter image description here
How to get data from pages by taking offset & ...
0
votes
1
answer
58
views
jquery - how to pass DIV text in a set of elements to another set of elements?
I need to get the text of each H3 tag and add this text to the relevant (read more link ) in a P tag .
I want this outcome :
var headingContent = jQuery('.eael-grid-post-link').text();
jQuery("....
0
votes
1
answer
25
views
Jquery if else structure on click each function
I have 6 divs, all with a general class name ".scene", and also have individual class names as ".scene1", ".scene2", ".scene3", ".scene4", "....
-1
votes
1
answer
56
views
How to link the function of a button to a single marker of an array
I have an array with 20 element like this:
they are showed on the map with a green marker, but I want that when i click on the button and some property are respected, the marker turns red.
The problem ...
-3
votes
2
answers
46
views
How to iterate json object
I have the following json object and trying to iterate with jQuery each but it only returns one iteration. What am I not doing right?
var data = "{
"SIEcat4": {
"3001": {
"test": "test"...
1
vote
2
answers
231
views
How to rewrite the undefined function each() correctly in this case?
Updating PHP on old WordPress website got an Uncaught Error: Call to undefined function each() in 186 line of class-vc-mapper.php
public function callElementActivities( $tag ) {
do_action( '...
0
votes
1
answer
63
views
How to iterate months in cypress?
I need to learn how to go from June to February with cypress, clicking month by month. My idea is to obtain the value of the month and if it is not the month February, continue clicking the next ...
1
vote
2
answers
38
views
count number up with XML Elements
I build my XML with my base XML like this:
$(xml).find('PARENT').find('CHILDREN').each(function(i){
outputstr += '<lorem id="">'
})
now the Object "parent" exists a few ...
1
vote
1
answer
41
views
jquery: Is there a way to run "each" iterations sequentially?
I have a table to manipulate. It contains rows from my database (in descending order). I
want to be able to use an array of ids, and remove the matching rows from the table. As I
remove each one, I ...
1
vote
2
answers
68
views
Ruby way instead of for loop in specific case of array iteration
Coming from other languages where for loop is predominant way of iterating, I am curious is there a better more Ruby style way to achieve below:
q=[5,1,7,9,0,3,6,8,0]
for i in 0..q.size/3-1
do one ...
2
votes
1
answer
182
views
How to generate gtag item list foreach product using JQuery
Here is a short product list for the reference. I would like to have my gtag generated below the product list. How can I do this?
<div class="product">
<div class="name&...
1
vote
1
answer
42
views
Change anchor link in pop-up window based on clicked link in JQuery
I'm currently helping to build a forum and we want to be able to warn users when they click links that will take them to an external site. At the moment, my code opens the pop-up window and will take ...
0
votes
1
answer
23
views
Apply jQuery formula to individual div values that contain certain words in class
I have the following block of html:
<div class="product BLACKSHIRT">
<span class="displayPrice">£50</span>
</div>
<div class="product WHITESHIRT&...
0
votes
1
answer
87
views
Use only second argument in $.each() function in jQuery
Is it possible to use only the second argument of a $.each function without having to pass both arguments to use it? Let's say I have a function like this:
$('.selector').each(function(index, element){...
0
votes
1
answer
171
views
How to create a colour gradient in each graph bar python?
This is the current output of my code at the moment.
I have this the code:
azul das barras
rb=0
gb=80
bb=141
color_bar=rgb_to_hex(rb, gb, bb)
laranja da linha
rl=237
gl=125
bl=49
color_line=...
0
votes
1
answer
210
views
How to search all sheet names for values (partial matches)
I have a workbook with multiple sheets in a master roster book which are named based on a roster cycle number.
Each roster cycle will have varying named sheets with a common number to designate the ...
0
votes
1
answer
82
views
kdb uses the symbol ' to compare strings one by one
I want to use ' to compare strings in a list, the code is as follows:
"tbl" ~'("customer";"tbl")
but reported an error:“length: Incompatible list lengths”。
The result I ...
0
votes
1
answer
137
views
JQuery - $.each within $.each wait for function to finish [duplicate]
I've got an $.each loop, that is within another $.each that is calling a function to add values to my back end system.
My $.each loops are like this:
$.each(locations, function( i, location ) {
$....
-1
votes
1
answer
69
views
Why isn't this jQuery loop not firing every time?
I have a page (product category in Woocommerce) with 12 products on it. Each product has a quantity field, and when you click a button at the bottom of the page, it loops over the products and adds ...
0
votes
1
answer
53
views
How to correctly update each() function in following example?
Could you please help me to rewrite the piece of code to fit the 8.2 PHP:
while ($this->init_activity = each($activity)) {
list( $object, $method, $params ) = $activity[1];
The full piece:
...
0
votes
1
answer
270
views
PostgreSQL - How to get all the rows, that are on the last day of each month
I have several tables, where all the data is recorded, day by day.
However, I need to make a select that brings all the records of the last day of each month.
I've looked around here on Stack and ...
0
votes
1
answer
135
views
Ruby array not updating when changing values in loop
I wrote this code block (mind all the print statements, I couldn't figure out where the issue was).
tablet_arr = []
objects.map do |backup_file|
puts backup_file
if backup_file == "...
0
votes
3
answers
59
views
APL2, order of processing each operator arguments
Assuming the user function:
∇ f b
[1] b
∇
and the following is executed:
f¨1 2 3
Three lines will display, 1 digit per line. In APLX the order is 1 2 3.
Is there any APL2 guarantee the order the ...
0
votes
1
answer
67
views
How to call a function with arguments for a button on click event in each block RactiveJS?
I'm using RactiveJS 1.4.1 and asp.net mvc core razor pages.
I put the html to a script-template in the page. And call it in RactiveJS to render. Rendering works fine, but button click action, the ...
-3
votes
1
answer
480
views
Deprecated: The each() function is deprecated. This message will be suppressed on further calls in [duplicate]
Recently I upgrade my php and suddenly I got this error
Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /modules/Downloads/admin/CategoryModify.php ...
0
votes
0
answers
23
views
Queue two sets of each() functions in jQuery
I am setting up an animation sequence in jQuery on some tabbed HTML content.
Example HTML
<div id="tabs-2">
<h2 class="majorpt">Pekinese</h2>
...
0
votes
0
answers
74
views
Iterate With jQuery .each() method and grab the current iteration
var selector = $("li.has-submenu .level-2").has("ul#specific-id");
var anchor = $("#specific-id > li > a");
$(selector).keydown(function(e) {
if (e.which === 13) {
e.preventDefault();
/...
0
votes
1
answer
31
views
how do I filter a json array and return a new field
statuss:
[{'is_visible': true, 'status': 1}, {'is_visible': false, 'status': 2}, {'is_visible': true, 'status': 2}]
new-statuss:
[{'is_visible': true, 'status': 1}, {'is_visible': true, 'status': 2}]
...
0
votes
2
answers
2k
views
Uncaught Error: Call to undefined function each()
I'm wondering if you guys can give me an idea about how to replace this each function:
while(list($key,$val) = each($_SESSION['cart'][$i]))
{
if ($key=="product_name"){
...
0
votes
0
answers
77
views
Converting each method in Jquery to Javascript for loop
$.each(data.features[i].properties, function(key, val){
items[i][j].push(val);
}
I'm using this each method in my code with the function which has key and val as the parameters of the function.
I ...
0
votes
2
answers
126
views
How to detect end of elements in div with jQuery each() on multiple div
I have several divs that have the same class .timeline-travel-steps. These divs contain elements .step that I want to select with jQuery each() Method
HTML
<div class="timeline-graphic"&...
-1
votes
1
answer
1k
views
PHP 8.0 - How to replace deprecated each() - with foreach()? [duplicate]
I understand that the each function() is deprecated in PHP 8.0.
Updated: I'm getting a Fatal error: Uncaught Error: Call to undefined function each() line 742 - [line 742 is this line in the code ...
0
votes
1
answer
53
views
Ruby each_with_index iteration. Unsure about why else statement is needed
Why do we need
hash[number] = index
in the following code?
nums = [11, 8, 1, 7]
target = 9
def two_sum(nums, target)
hash = {}
nums.each_with_index do |number, index|
if complement = hash[...
4
votes
1
answer
168
views
Printing hash of array as values with Dumper leads to infinite recursion
The following code leads to infinite recursion. If printed without Dumper then it works as expected. Why Dumper causes recursion?
use Data::Dumper;
my %hash1 = (
'key1' => ['val1']
);
...
0
votes
1
answer
55
views
Solution for removed each function in smtp module of drupal 7 on php 8 servers
I noticed an error in smtp.transport.inc of the drupal module smtp 7.x-1.7 because of the in php 7.2 deprecated and in php 8 removed function "each()".
Unfortunatelay a customers drupal 7 ...
0
votes
2
answers
279
views
Ruby - Checking if one array key/value is NOT present in another one
With ruby, I am trying to look from the first array key[:nb].value, if there is NOT one similar pair in the second one.
Considerate below arrays contain thousands of elements:
arr1 = [{"nb"=&...
0
votes
2
answers
431
views
jquery, if specific elements contains specific text, change the icon class before this
i have this html code:
<div class="online-users">
online users
<span class="user-online">
<i class="fa fa-circle"></i>
<...