html-input Questions

3

Solved

Having an input field like: <input type="text" /> Will automatically (on Android) change the Enter option on your keyboard to say Next, and it will jump to the next field. How to a...
Knotty asked 26/1, 2022 at 16:56

16

Solved

I am working on a search with JavaScript. I would use a form, but it messes up something else on my page. I have this input text field: <input name="searchTxt" type="text" ma...
Blondy asked 19/7, 2012 at 15:0

10

Solved

I actually have a file input and I would like to retrieve the Base64 data of the file. I tried: $('input#myInput')[0].files[0] to retrieve the data. But it only provides the name, the length, ...
Duodecimo asked 5/9, 2012 at 12:47

16

Is there a way to force the number keyboard to come up on the phone for an <input type="text">? I just realized that <input type="number"> in HTML5 is for “floating-point numbers”, so i...
Metaxylem asked 30/5, 2011 at 16:16

0

I have an HTML page containing <input id="imageOnly" type="file" accept="image/*" multiple /> If I load this page on a mobile browser (say Safari on iOS) and tap...
Banas asked 6/4, 2022 at 18:5

6

CSS overflow:visible doesn't seem to get applied to inputs. See the following JS fiddle: https://jsfiddle.net/b4sr578j/ input { border: 1px dashed black; overflow: visible; height: 28px...
Riesling asked 9/6, 2015 at 10:46

9

Solved

I'm working on building new site, and I need a drop down menu to select the amount of something in my site. But at the same time I need this drop down list to accept text. So if the client wants to...
Tophus asked 19/8, 2013 at 8:6

20

Solved

I’m trying to make a html5 form that contains one email input, one check box input, and one submit input. I'm trying to use the pattern attribute for the email input but I don't know what to place ...
Fairhaired asked 8/4, 2011 at 23:7

5

I have a controlled React input component and I am formatting the input as shown in onChange code. <input type="TEL" id="applicantCellPhone" onChange={this.formatPhone} name="applicant.cellPho...

5

Solved

I've been reading many other questions, like these[1][2][3] for example, but the problem still persists. I need to find the "cleanest" way to have a HTML input for mobile devices and whic...

2

Solved

Given a number input: <input type="number" id="create-y-small" name="create-y-small" value="0"> How do I get the value of the input as a number?...
Jankey asked 28/11, 2021 at 11:2

8

I have a mobile website and it has some HTML input elements in it, like this: <input type="text" name="txtAccessoryCost" size="6" /> I have embedded the site into a WebView for possible An...
Benzel asked 30/7, 2010 at 14:23

2

Solved

I have just found a stray event.preventDefault() that was breaking my checkboxes' onChange handler: import { Component } from 'react'; class App extends Component { constructor(props) { super(pr...

3

I am using material-ui to render a TextField component in my react app. It's somehow forcing all the <TextField type="number /> to have decimal separator as comma (,) instead of dot (.) which...
Glanti asked 5/11, 2019 at 13:37

10

Solved

We all know how to form a checkbox input in HTML: <input name="checkbox_name" id="checkbox_id" type="checkbox"> What I don't know -- what's the technically correct value for a checked chec...
Quick asked 21/10, 2011 at 15:41

3

I have an HTML input: <input [(ngModel)]="item.value" name="inputField" type="text" /> I want to format its value and use an existing pipe: .... [(ngModel)]="item.value | currency:'USD':t...
Imperturbation asked 18/1, 2018 at 12:39

7

Solved

I added the code below to select whole text when user click on input box: <input type="number" onclick="this.setSelectionRange(0, this.value.length)" name="quantity" /> But I receive the e...
Dripdry asked 29/10, 2015 at 4:51

7

Solved

I used jQuery datepicker and I want to restrict my input field with a HTML5 pattern if a user, instead of getting the date from jQuery datepicker, types the date. How can I restrict my users with...
Cooperate asked 13/6, 2013 at 6:55

1

I want to disable the suggestions for previously entered texts on a <input type="text" list="stuff"> which provides a drop down list to choose from via a <datalist>. This behaviour cau...
Codicil asked 8/7, 2016 at 23:29

4

Solved

Continuing adopting my code to work with IE... I have a hidden div containing a form to edit some information. When the user selects the item to edit, this div is shown and the fields are populate...
Kermie asked 18/5, 2012 at 14:34

13

Solved

What are the ways to get and render an input value using jQuery? Here is one: $(document).ready(function() { $("#txt_name").keyup(function() { alert($(this).val()); }); }) <script...
Canaveral asked 3/11, 2010 at 15:7

19

Solved

$input.disabled = true; or $input.disabled = "disabled"; Which is the standard way? And, conversely, how do you enable a disabled input?
Antioch asked 12/9, 2009 at 5:21

3

I'm having some problems to set a minimum and a maximum YEAR with HTML5 date input. Here is my code: <input required="required" min="1900-01-01" max="2099-09-13" ty...
Unicorn asked 6/3, 2014 at 18:13

14

Solved

I'm working on an ASP.net web application. I have a form with a submit button. The code for the submit button looks like <input type='submit' value='submit request' onclick='btnClick();'>. ...
Closet asked 19/11, 2010 at 16:25

18

I have a checkbox that, given certain conditions, needs to be disabled. Turns out HTTP doesn't post disabled inputs. How can I get around that? submitting the input even if it's disabled and keepi...
Rafaelrafaela asked 18/1, 2011 at 19:7

© 2022 - 2025 — McMap. All rights reserved.