I have a simple login page (login_page.html). The farmerId (= user name) which is used for the login, should be displayed on the next page (after login), which is the farmer.html + farmer.js I tried it as followed, but the farmerId/user name is not displaying at the farmer page. ***changed to minimal reproduc…
Tag: html
Why does displaying text inside the document via transform: translateY(-100%) create extra white-space at bottom of page?
Put very briefly I wrote a vuejs component that includes a small icon that displays some text when being hovered over. I created a minimal example here: https://codesandbox.io/s/sweet-jackson-v0kgc?file=/src/components/ShowBox.vue:115-136 The special thing is: when the icon is at the very bottom of the page t…
Want to remove previously appended table
When I Click on submit button after clicking on the links it appends perfectly but when I hit the button again it doesn’t remove previously appended table. I want to clear the previously created table when user clicks on the cross button and then print the table again or else overwrite the table but ins…
creating alt tags for images gotten through JSON
This web page has three cards with information above and an image below. I am using JavaScript and HTML to get the information that goes to my web page. My JavaScript gets the information it needs from the following online JSON file. The file doesn’t contain alt text for the image. when I run the Wave e…
How do I set a progress bar value by text-type input?
I am developing an application where the user has to input a name and then there is a progress bar that must be set the value in the input text type (or numeric type). I want the progress bar to automatically have that value. I used this HTML code: and my javascript code is : Answer it better to add
Undefined Range Value
For context, I’m just learning JS. On my web-page, I want to have the option to create new range-inputs that are interactive. I also want to use the values of the ranges for an equation. Right now, I can add the ranges themselves fine, and they work, but the values of each range returns as undefined. I …
unable to add a border to popup modal
I am using a Popup modal component from the reactjs-popup library. This is how it looks like: I want to add a thick black border to the popup component. How can I do so? My current css doesnt seem to work. Answer You need to set border-style: solid; the default is none. (maybe border-width too)
Query ‘data-value’ to Populate Conditional If Statement
For each .round div, there is a data-value(%) which is static at the moment, but eventually going to be dynamic. Trying to call it in my JS for if data-value <= 0.50 display the bar as red, if data-value >0.50 && data-value <=0.75 display the bar as yellow and if data-value > 0.75 display …
How do I increase and decrease the addition in a span tag by click + and – buttons around input tag?
It’s worked without buttons. But how to apply input addition with help of + and – buttons. How can I solve this with javascript or jquery? How to get an answer at runtime by clicking the buttons around them. I also have a separate code for the increase and decrease buttons. Answer This is what I a…
alert down on inputbox
how can i bring All fields are required! Error Alert down to input box like show error that username filed required down on username input filed same to password filed down on inputbox Answer An alert always appears at the top of the page. If you want some kind of indication below your input fields, you could…