I am making a packing list for my assignment and we choose any place and any 3 items to bring. What is supposed to happen is the user presses the 1, 2, or 3 buttons and a prompt will appear telling the user what they want to swap the chosen item with. Then, once they hit OK, the new item
Category: Questions
Building a table in javascript and have bold test in 1 cell
I have some code below that dynamically builds a table in the Cell21 I want the test to be bolded, I tred 2 different ways one where I try and set font-weight to bold and the othere where I try a …
Syntax error, unrecognized expression: Jquery
I want to add/remove the active class from the data-filer = variable, but this error gives: Uncaught Error: Syntax error, unrecognized expression: li[data-filter=.arroz-1] What am I doing wrong? Answer You missed some apostrophe. Try this:
Get a value from a JS script and pass it to a HTML Form
I don`t find out how to get the value from the js script input ( phone number that user input , and the country prefix code that the script auto put ) Full code : Answer As I can understand, your js file has a phone number and you want it to be in your input field. If so, then
How to get future date based on timestamp ratio
I am trying to have a virtual calendar for a game. I have events that will last a certain time in reality (1 week, 1 month). In the game those events should always be equal to 1 year. To make things …
i dont understand this javascript return statment. its using this arrow function
can anyone explain this javascript syntax. i dont understand that return statement. Is “person” an argument to the function? if ‘yes’, from where it is passing? there is no person variable …
Clicking on a flip card keeps it flipped over
I’ve made flip card with mouse hover by HTML & CSS. I want to do that after clicking on the “back” the card does not return to the front (on one page will be few these flip card, so when clicked 1st will be the on “back”, then clicking another one and this two cards will be o…
The first frame captured by the canvas becomes completely black after outputting to the img
I try many articles and methods but still can’t solve it, I hope to get a little hint Then English is not my native language, sorry Answer You are mixing a few pieces of code here… The img.onload part works for when you want to draw that img on the canvas. Here you are not in this case, you want
multiple addEventListener on submit for the same form
My stripe checkout page i have a section in the from for billing information using html (none stripe form) when a user submits the form, this ajax is fired, to validate the billing information section (name, email etc) if the form is valid, the input value is changed from false to success now if the validatio…
why isn’t recursion working? i am trying to display n to 1 series
Javascript Recursion why isn’t recursion working here? i see coundown(n-1); isn’t working for some reason. I want to display [5,4,3,2,1] Answer Your code creates a new array at every recursive call, puts one value in it and returns it. Nothing is done with the array that is returned, as each execu…