Skip to content

Tag: javascript

How do I repair the functionality of my menu?

I have been coding my website over the past month in html (please don’t judge). I do not know how to code with php and databases yet. so the problem I have is… I tested every link and function throughout the entire process on my laptop using firefox to live preview my files and it was all working …

how to make an iterative array from two array

I have a cmyk array which is : and the other one is the number array which is: I want to have an array which has iterative cmyk respect to arrGeo numbers which means: and this is my code to make it : Answer You could map with another loop for the wanted count.

Strange JavaScript warning in VS IDE

I’m getting an odd code syntax warning in Visual Studio, for a bit of JavaScript: The warning is on the opening curly brace: TS1005 (JS) ‘;’ expected. I tried adding a semicolon after the closing curly brace, but that didn’t make a difference: I’ve also determined that when this …

Disabling single button

I am having a problem of disabling single button When I click to order for $10 it disables all buttons, and I only want the one which I have clicked to be disabled Answer Use $(this) which is the actual clicked item accessed by the selector I would also delegate so you could add more buttons later