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
Tag: html
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
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…
How do I retrieve and transpose data to a webpage from an API?
I am having trouble accessing data from an API. Here is my code with a fake access code. I am getting an error that says “Uncaught TypeError: Cannot read property ‘temp’ of undefined” Here is the API. I want to be able to access temp and description and append them or add them to my pa…
Why isn’t the alerts showing up?
I’m trynna make a simple validation in JS by checking if the name entered has at least 5 characters and the age is over 18. This is what I have so far: I have no idea what am I doing wrong and why is it not working. Answer There are various issues with your code in if (userName.length < 5)
I’m using React and my components are not rendered
I’m trying to follow a React tutorial this code should render some buttons, but it isn’t happening. I’m using codepen.io to make the code and I can send the tutorial link if necessary. Answer You forgot return your Pad component.
Filter HTML Table using JavaScript – textContent Error
Desired Result: Input data from a .csv file into PHP. Take the data from the .csv file and store into an array. Store the array into an HTML table using PHP. Use a search engine to filter through the rows using JavaScript. I am getting the following error in the JavaScript: Uncaught TypeError: Cannot read pro…
Divs not stacking, instead is overlapping
I am trying to stack a div containing buttons under another div that contains a flipbook created using turnjs. This is how the webpage looks like: https://imgur.com/a/Nwp3Mgi . I want to position the buttons under the flipbook, but it will overlap instead. This is the html: This is the css: How do I ensure th…
Div will always shift up after refreshing the page
I have 2 divs on the webpage, the flipbook that is created using turnjs and another div containing the buttons. When I load the page, the divs are in the center of the page: https://imgur.com/a/lLb2g2l . After I refresh the page, the divs will shift up and stay there even after refreshing the page. This is ho…
CSS Image overflow hidden without stretch
I am trying to reduce the thumbnail’s height without stretching the image. Despite I wrote my code in React I know is pure CSS. For example, I used a sample screenshot from Wikipedia, its height is too large to fit “in a thumbnail” so I need to reduce it so a JavaScript library can autoscrol…