All Questions
Tagged with multidimensional-array jquery
624 questions
1
vote
1
answer
32
views
finding and setting an element in a double-dimensioned array
I'm tying to increment the counter for each tag in a collecton of listings as I process them.
I've got a JSON object like this:
var jsonListings = [
{
"img": "2521"...
0
votes
1
answer
42
views
Jquery: Each inside each not recognizing pre-defined array
I'm trying to create an array that keeps track of which lines are already hit so they aren't checked repeatedly if I allow the game to continue until another bingo is hit. This is where my problem is ...
2
votes
0
answers
101
views
building a dynamic query builder
created a suggestion based query builder
created 4 element in a 2d array called suggestion.
var field = []; //predefined values from the server key and value-based array getting only the key
var ...
1
vote
2
answers
64
views
Using Javascript/JQuery, how can I read and analyse HTML form data (multi-dimensional array) created by PHP?
I'm struggling to read and manipulate data from an HTML form in Javascript/Jquery.
Context: I have a sales screen showing multiple products, and I want to loop through them all, analyze their contents,...
1
vote
1
answer
33
views
Extracting from json multidimensional array
I have an array and trying to extract an object with an if statement that if a key equals a specific value then get that corresponding object. So what I'm trying to do is build an if statement that ...
1
vote
1
answer
149
views
How to stringify an array with 1 or more arrays in it as objects in jQuery
I have an array that comes from the database as a list of items and 1 or more arrays that comes as key value pair in the same array. Like, a set of arrays inside an array.
var cheese_array =
{
...
1
vote
0
answers
756
views
Converting Array of dot notation strings to nested Json-Object
I have the following problem. I'd like to convert an array of strings in dot notation to a nested json object.
example input: obj = {"project1.foo.a" : "value", "project1.foo....
2
votes
3
answers
74
views
Javascript one-dimentional array of object "like" Filter
I have one-dimentional array of object like this:
var data = [
{
"empId": 63758,
"empCode": "000003A",
"empName": "Robert",
},
{
"empId&...
0
votes
2
answers
60
views
How to read array of array in jquery
my ajax call is returning 3000 records but js is returning 3000 records as 0-99,100-199 so on.... of 3000 records. how can i read all records and bind them into Datatable.
Also getting this error
...
-1
votes
1
answer
42
views
how to create 2D using two different array or single array
I want output like this:
items = [['red', 'blue', 'green'], ['small', 'medium', 'large']]
I have array item which has value:
items = ['red', 'blue', 'green','small', 'medium', 'large']
1
vote
1
answer
153
views
Pass Javascript Array containing multiple files to PHP
I would like to send Javascript array containing files to PHP using AJAX
The following are 3 files that I want to send to the php side. (These outputs come from console.log(document.getElementById(&...
1
vote
1
answer
27
views
jQuery $.each for $.getJSON | Not being able to grab values from multidimensional array
I want my jQuery code to do the same as my PHP code provided at the bottom, but after 1.5 days, I havent found any helpfull information.
<script>
$(document).ready(function(){
var studNt = ...
0
votes
2
answers
23
views
Convert encoded array to jquery with embd CRS as a Object using jquery
let images = ["1.jpg","2.jpg","3.jpg","4.jpg","5.jpg"]
Convert this Encoded Array to this using JQuery.....
I have images encoded array, I want to ...
-1
votes
1
answer
58
views
How to iterate var in javascript. Array inside array
I'm trying to iterate over the result of an array, but it's not working. Each result can have up to 20 results. I'm getting it three times, but I can't iterate through each of the 60 results
var ...
1
vote
1
answer
416
views
Jquery, Find a subarray that contains a value
I would like to "push" a variable into a subarray which contains a value. This is to integrate into a "for loop". But it does not work ..:-( where is my mistake ? Thanks.
var add = ...