All Questions
Tagged with html-input html
467 questions
1
vote
1
answer
73
views
How to change text spacing in HTML time inputs?
I am making a time range selector, and using Bootstrap. It needs to be a specific fixed with so that it can fit with the other components. I've noticed that Firefox renders the text of a type="...
0
votes
1
answer
36
views
html input slider jumps to middle when value is NaN
I'm using the slider in a react app and modifying the value like so
<input
type="range"
className="frame-slider"
min="0"
value={currentValue.toString()}...
0
votes
1
answer
36
views
How can I remove the default arrow from the list input and add a new arrow using pure html and css? [duplicate]
I want to remove the default arrow appearing in the list input field. is there anyone please who can help me and show me a way to add a new arrow in place of the default arrow here?
<body>
&...
2
votes
0
answers
166
views
HTMLInputElement maxLength property has an invalid default value
We're developing a web component library. We're using ShadowDOM and inside that, native HTMLInputElement instances. Since we're aiming to widely be compatible with native inputs, we're mirroring the ...
0
votes
1
answer
356
views
How to use HTML5 input pattern attribute to validate Latin and extended Latin characters only
I am working on a web form where users are required to input text that should only contain Latin characters, including extended Latin characters (such as ñ, é, ü, etc.), but should exclude any non-...
-1
votes
2
answers
44
views
Unable to add decimal in input type even after adding step
I have HTML input which is set to be a numeric input including the up and down carets. To my surprise I am unable to enter any decimal numbers.
<input type="number" />
It does not ...
0
votes
2
answers
48
views
Load uploaded video into html
I want the user to be able to upload a video and then, by clicking a button, load the video into a tag to view.
Here is an example:
HTML:
function loadvideo() { video = document....
2
votes
2
answers
116
views
Alert box not displaying Sum with Html Input Fields
New to website programming. I'm trying to make a basic sum equation with 2 input fields taken from client-side.
<!DOCTYPE html>
<html>
<head>
</head>
<body&...
1
vote
1
answer
168
views
How do I set the starting value of a time picker, only when it gets focus?
I have a time picker:
<input type="time" name="appt-time">
I want to keep it empty until the user starts selecting a time. Only when the user clicks the element and the popup ...
1
vote
0
answers
499
views
How can I disable any day in an HTML input where the date is selected?
I have a page in React where I use browser input. How can I block any calendar day I specify in the relevant input?
<input type="date" id="start" name="trip-start" ...
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
240
views
Change the color of an element when text is typed in input?
I'm looking for a way to change the style of an element, (like the <body>) when not just text, but specific number like "5214" or something is entered in an <input>. With my ...
0
votes
0
answers
32
views
Validation of Names with HTML-Input pattern [duplicate]
im relatively new to WebDevelopment. Basically, I have an application where I want to allow only alphabetical letter a-z and A-Z and the – special character for double names like Marry-Jane in the “...
1
vote
1
answer
101
views
HTML input field width varies with content using only CSS (no JS)
I can set the width of an <input type=number> field with CSS width = 6em; or width = 100%, but those only set a fixed width or a width that varies with the container. I want the width to depend ...
2
votes
2
answers
140
views
How can I increment a number input?
When using HTML input elements I tried implementing the step attribute. This allowed me to add 100 to the current value by clicking the up/down arrows in the input field.
However, step determines ...