All Questions
Tagged with html-input forms
74 questions
0
votes
1
answer
133
views
How to force JS input's 'change' event when value was retyped but not changed?
I know there are a lot of similar questions, but I haven't found exactly my case.
Using vanilla JS there is an input control in which a user types something. A date as an example (but could be a phone ...
0
votes
2
answers
448
views
Visual bug when input is autofilled
I have an html form with a bunch of inputs. When an input gets autofilled by Safari and I then attempt to edit the input there is a weird overlapping of the string.
If I click around it seems to fix ...
3
votes
0
answers
394
views
Placeholder for time input in Safari
I am using <input type="time" />. Chrome, Firefox, and Edge renders it properly i.e. the placeholder used is : --:-- -- where as Safari uses 12:30 PM as a placeholder. What is the ...
1
vote
1
answer
2k
views
Step attribute does not work in <input type="datetime-local"> and <input type="time">
I can't understand the step attribute in <input type="datetime-local"> and <input type="time">. It seems to be badly implemented in all major browsers.
Step="1&...
0
votes
2
answers
927
views
Continue number series when using a placeholder value in <input type="number">
I would like to continue with numbers when using a placeholder in an input form.
Let's say my placeholder value is 5:
<input id="threshold" type="number" placeholder="5&...
0
votes
1
answer
473
views
How do I access and update value in HTML input type number? [duplicate]
I am trying to perform a calculation where the number entered by the user in the first input is returned in the readonly second input field instantly. Its a simple calculation to take 20% of the first ...
2
votes
2
answers
2k
views
How to create reactive search input field in Vue.js?
I want to build a seach input field that sorts an object array while typing, using vue 3 with script setup.
input field:
<input type="search" placeholder="Search" v-model="...
-1
votes
1
answer
677
views
When label is used with asterisk in input field, when it's text is large it's over laying on Asterisk
I've created a form element which has basic input field with label that should be required. So I've added asterisk.And when the text is large it should break to multiple lines. But the problem what I ...
0
votes
1
answer
1k
views
HTML + JS: Clear File Input on button click
I want to tell my backend, I deleted the assigned file it already loaded:
<input id="pic" name="pic" type="file" onclick="this.value=null;" onchange="...
1
vote
1
answer
30
views
JS switch what form returns to a b64 string
I want to save an image in b64 format in my database. For reasons I want to deal with the logic on the frontend side of things. My backend sends a form and already encapsulates the filefield input ...
0
votes
2
answers
454
views
How to make a button(input) work for only one textbox in html?
In the code below all submit and reset buttons works for all textboxes, however I want it to make it so that every button applies to the textbox one above it. I want one button to work for only one ...
1
vote
0
answers
165
views
Javascript set value of input field such that it registers
I'm trying to automate login to https://login.channeladvisor.com/ in Chrome.
Setting value of the username and password fields is easy:
document.getElementsByName('username')[0].setAttribute('value','...
0
votes
2
answers
303
views
HTML wrong formatting
I am trying to create a simple login page, but I keep stumbling upon a problem. An input I put in a form (which is in turn in a table) goes to the top left corner of the page. Here is my code
<!...
0
votes
1
answer
47
views
Is there any way to set up form attribute input tags to get Google Advanced Search to work with no JS
I am working on project 0 for Web Programming Python and JavaScript Course in CS50. I am having a problem on google advanced form to return items on the input field. I have tried so far here is my ...
0
votes
0
answers
109
views
Backspace Fails to clear values on input type='email' When there is a <SPACE> in the email Field
If there is a ' ' space in the email field pressing Backspace takes the Pointer Back to the start of the Input Field without deleting the Text before the ' ' space.
I'm using this Input Tag for React ...