All Questions
7,641 questions
-1
votes
1
answer
34
views
How to display 3 elements by 3 of an array in HTML using array.sclice() method in javascript
I have found a way to display a portion of an array using arrayName.slice(start, end), i made a funtion to feed the start and end to the slice method so i can use it with onClick button to click next ...
1
vote
1
answer
37
views
Drag and Drop Swap in cards is not working
here is my code, and i am trying to Drag a .card (which includes an image),Drop it onto another .card and swap their content so they switch places visually. But it is not happening and also not ...
1
vote
1
answer
116
views
Matching Card Game using JS
*{
box-sizing: border-box;
}
.clear {
clear: both;
}
section {
border: 1px solid black;
height: 200px;
width: 50%;
float: left;
}
<!DOCTYPE html>
<html lang="en">
<...
1
vote
1
answer
58
views
Array of data showing in console but not in HTML after passing it through dialog in Angular project
Method that I use to pass the data:
openDossiersList(): void {
if (this.selectedDossier) {
this.dialog.open(DossiersListDialogComponent, {
width: '400px',
...
0
votes
3
answers
116
views
How to make next and back buttons with div array?
I'm coding a website and for the life of me i cannot find a way to get a functioning
way to get all four buttons to work.
var divs = ["Page1", "Page2", "Page3"];
var visibleDivId = null;
var i, ...
0
votes
1
answer
39
views
InsertAdjacentHTML is not a function [duplicate]
Going through the Javascript for Web Warriors book, Chapter 3 Project 5. It's an assignment to debug the code so that it displays cell phone sales in a barchart. The error: "Uncaught TypeError ...
-3
votes
1
answer
66
views
Fetching from a local JSON file not returning any data, function stops running when fetch added [closed]
Trying to fetch a json array from a local json file. The function runs fine when the fetch is not there but as soon as I added the fetch it doesn't run the function at all. I added a console log to ...
0
votes
0
answers
29
views
JavaScript Failing to Retrieve JSON Field Data from HTML and Execute SQL Query
I'm having trouble with my JavaScript code not properly retrieving and using data sent as JSON from an HTML form. Here's the process:
A user enters a single or multiple addresses in an HTML form.
The ...
-5
votes
1
answer
101
views
Javascript cannot map object with repetative values
I need to style specific elements by id using given object.
Keys and values in projectSkillsMap object corresponds to ids in html file. When user clicks on element with id listed in object keys ...
-1
votes
1
answer
64
views
Why won't this program display correctly? [closed]
I have this HTML page which is meant to display a to-do list and allow users to add tasks to it
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="...
-3
votes
1
answer
60
views
I can't add buttons with filling from JSON file
I have an html project to which I need to add 4 buttons filled from a JSON file using an array.
The parameters are taken depending on the link id.
<div class="d-flex justify-content-around ...
0
votes
0
answers
45
views
handleInputChange data input synchronising to all other rows
I have a LWC which diaplays a table of a custom object called 'Specifications' which a are grouped by Opportunity line items (parent record of the specifications.
The Opportunity row was read only, ...
0
votes
1
answer
59
views
Hard stuck on trying to get images to flip back if incorrectly matched with each other
Trying to create a simple card matching game.
The idea is if you select two different cards in this game, they will flip back and you gain a turned used. If the two cards are the same they stay ...
1
vote
3
answers
76
views
How to print the full, updated array after removing the last object?
I'm currently making a website with a "shopping list" functionality. I can create an array and add items to the "shopping list" via the input field, and I can also remove the ...
-2
votes
1
answer
52
views
Bulk Update using array of option fields on mysql database and php
The problem I am having is that the exact row changes is not updating the intended row but a row before the row. So if I make changes to row 45 and 46 respectively. I will see the update on row 44 and ...