All Questions
13,584
questions
0
votes
2
answers
53
views
set array items into separate variables
I am trying to set each item in an array into their own variables. Here is what the array looks like:
labels = ["label1", "label2", "label3", "label4", "...
-1
votes
1
answer
43
views
JS array is adding the first selected items value plus the new one with it
I have a bootstrap drown down that outputs data dynamically with values of 1-9.
Then I am attempting to grab the data of the selected dropdown item each time one is selected and push it to an array.
...
0
votes
0
answers
33
views
How to pass Array with Dropzone Form Data
I am using DropZone and trying to pass Array with the formData.append() for on("sending") method.
I couldnt find any example where we are passing additional data of List objects(except ...
1
vote
2
answers
53
views
Nan to sum array
I need to sum value of same id.
This is my code
var myarray = [
{"a25": "5000"},{"s36": "125"},{"d44": "15"},{"a25": "...
0
votes
0
answers
46
views
javascript accessing data outside of function [duplicate]
I'm having trouble figuring out how to access my data properly. I have the following code bit
$.each(response.data.tree, function (i) {
//We only want files
if (this.type == 'blob') {
//...
-1
votes
1
answer
57
views
Error on converting Json data to QR code using JS library
I'm trying to convert JSON data into a QR code, so when a user scans it, the JSON data should be displayed. I've been using the jquery.qrcode.min.js library for this. Here's an example of the JSON ...
1
vote
1
answer
51
views
How to populate data from json format into data table and keep datatable properties
I have been able to get data into data table from json format via ajax,But suddenly data table lost some properties that enable it to search and allow pagination on page. But the results can be viewed ...
1
vote
1
answer
42
views
Comma-separated list to array and populate dropdown list
I have this dynamic list of countries:
<div>Argentina, Brazil, Colombia, Ecuador</div>
I want to add the countries as options to a combobox dropdown using the following format:
options: [
...
-1
votes
1
answer
40
views
convert row data in column wise in html table in javascript array of object
below i have an array of object in javascript
[0] => stdClass Object
(
[id] => 12951
[user_id] => 1
[balance_amt] => 100
[year] => 2020
[...
0
votes
1
answer
37
views
Multiple checkbox's with multiple dropdowns and input tags, store selected values together/remove if unchecked
Lets say I have multiple checkbox's and some text and then a dropdown from 1-10 in the following format
[CHECKBOX1] [NAME1] [DROPDOWN1 1-10]
[CHECKBOX2] [NAME2] [DROPDOWN2 1-10]
[CHECKBOX3]...
0
votes
0
answers
23
views
Capturing data from AJAX-loaded modals using jQuery and JavaScript, encountering issues with capturing data from previous modals when opening new ones
I have a modal where I use AJAX with jQuery and JavaScript to make a GET request and display some data. Within this modal, there's a button that, when clicked, captures some data. I've added a console....
0
votes
0
answers
38
views
JavaScript Array not filling correctly with push [duplicate]
I want to send multiple XMLHttpRequests to my server, collect the results in an array, then use this array to populate the HTML of the target element, in this case a Popover.
My code is a mixture of ...
1
vote
2
answers
42
views
Merge array using sum
I am trying to merge/filter an array by shop name and it's status (group by shop & status), also need to sum it's rent_toaal, latefee_total, amount_total and finally count total_shops.
Required ...
0
votes
0
answers
19
views
[jQuery]Data array binding
I have an issue with array binding included into an a data attribute.
The scenario:
<div class="rooms" data="room_14 room_10 room_9 room_5 room_4 room_12"></div>
I ...
0
votes
0
answers
29
views
How to bind a listview using javascript or jquery
Application used to bind a list view in nav bar from code behind but Im trying to bind it from client side after fetching data using Ajax on page load.
I got the data on client side but not sure how ...