Can you help me identify where’s the problem with this code? I’m a beginner at coding and very likely I’m missing something obvious, but here’s my problem. When clicking on numbers it seems to work fine, also adding gets to clear the display and (I think) it stores the value in its var…
Tag: html
added styling to my table and it stopped working
I have made an order form in java and html css everything was going well until I decided to put some styling in my code and now it doesn’t reset post it basically does nothing its probably something small but I cant find it even when I use the javascript console. It needs to show the amount and I need
How to show div, if one of the checkboxes is checked (with a different name on each checkbox)?
I am trying to show div if one of the two checkboxes is checked. I found it in some article but with the same name, I am using a different name for each checkbox to store it into mysql. My current javascript code is the input fields are where jj1_ikk and jj2_ikk are the checkboxes id, and jsa is the
Navigating around website adds a [object object] to URL after clicking around anchors
Thanks for reading. I just wanted to know why i get a “/index.html#[object Object]” at the end of URL when clicking around anchors on a single page website. I would also like to know if i can remove it if it isn’t too game changing with htaccess or resolve the issue that is occuring? If you …
How to assign a string to a variable using if else in javascript?
im trying to have my function use an if else statement to determine whether or not a hypothetical salary is good enough and print the result back to my HTML page. . I feel like the code im using in my if else statement is good, but it seems to be getting skipped over and when I print the results
How to pass an object inside a function call of a button in google app script
I am having trouble parsing the object correctly. This code is on the backend. On the front end this renders as <input type=”button” class=”btn btn-link btn-xs” value=”Download JSON” onclick=”downloadFileAutomatically(‘{” rohan”:”sharma̶…
HTML + JavaScript custom player for multiple videos on a website page
EDIT: I have found the solution, posted and marked as the best answer below. I’m coding a portfolio website for myself using HTML, CSS and JS and I need to add multiple videos on a lot of pages. I followed some tutorials to learn how to customize the video player, but it only works for one specific vide…
Transition the height of an onclick drop down text with css and js
I tried to make a section where I talk about my hobbies etc., but the text was a bit too much, so I decided, that you only read the first sentence and can click it to read the whole text. I used some CSS and JS, but I didn’t use Jquery. Now I want to add a transition to it,
A function that works on an HTML page but not on the other one
I have a problem with the snippet below : everything works perfectly when I press the button on the 1st page. But it tells me that “secondPageItems” is not defined when I press the button on the 2nd page. (here every thing works fine because it’s on the same HTML page) Even stranger, if I pu…
Is it possible for an html file to access loaded html variable using fetch?
lets say I have a page.html file with this content: and then on my main.html file I used: Is there a way to access foo_data on my main.html file or are there better ways to do this? Answer Here is eval() method. Basically the idea is parse html in data variable, and execute <script> elements with eval: