Skip to main content

All Questions

Tagged with
-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 ...
elbannhawy's user avatar
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 ...
user15895653's user avatar
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"> <...
techCARE_'s user avatar
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, ...
Millani Jones.C's user avatar
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 ...
Tazvanor's user avatar
-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 ...
SamJones04's user avatar
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 ...
Richy Chernov's user avatar
-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 ...
NanoMuffin's user avatar
-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="...
STARRCADE97's user avatar
-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 ...
ne slava marlow's user avatar
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, ...
Timothy Hayward's user avatar
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 ...
Waskar Paulino's user avatar
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 ...
user7379898's user avatar
-1 votes
1 answer
66 views

Click on DOM element that matches array object

Edit: Thanks to Giri , the working code looks like this. The intervalHandle makes sure the if statement only runs once a random lapse of time has passed. $(document).ready(function searchAndGet() { ...
user26839name's user avatar
1 vote
0 answers
59 views

Multiple adding to cart in JavaScript doesn't work

when I add products to the shopping cart at some point it stops updating the table, it is refreshed when I click the previous product and the product I want to add. Live site: https://frontend-mentor-...
Kajetan Ślęga's user avatar

15 30 50 per page
1
2 3 4 5
341