Most voted "input" questions
It is an input element that represents a typed data field, usually as a form control to allow the user to edit or enter data.
Learn more…466 questions
Sort by count of
-
1
votes2
answers151
viewsRemove div if input is empty
I’d like to rule that out div if the input receive an empty value. <div class="form-group col-md-2 usuario"> <label>Usuário:</label> <input type="text" readonly…
-
1
votes1
answer355
viewsCheck equal data in SQL with onBlur
I need you to type in input, it check in the database if there is an equal record, as those user creation fields in email. I believe it’s in the onBlur of input, and use a if == in the command, the…
-
1
votes1
answer23
viewsHow do I specify a distant address within several others using an input type="checkbox"
I have a menu made with lists 'ul' with a sub-menu when clicking on the "checkbox" The element is very far away and the reference using the "checkbox" is right at the beginning, I do not know how to…
-
1
votes1
answer324
viewsHow to insert single quotes inside simple html quotes
I need the placeholder for my input tag to be "Patient’s Name" and thanks to the script being used, I can’t double quote. I would like to know how I can insert a single quote within two single…
-
1
votes1
answer47
viewsHow do I create an element with Vue JS?
I made this very basic structure, a component with input, I wanted to click a button and generate one more in html. I try to search with appendchild or v-for or even v-html, but I’m not getting. let…
-
1
votes1
answer275
viewsCHANGE INPUT FILE STATUS
And ae! So, I wanted that when choosing a photo in the input, the name of the file/ photo was printed under the input or inside, whatever... Ahh, yes... The input ta with diplay:None; only that a…
-
1
votes1
answer35
viewsHow to pass HTML form element parameters directly to the URL
I need to pass information directly to the browser but the result of the code is always returned as https://xxx.com/? cli=value need to return in the URL only the value contained in the input…
-
1
votes0
answers94
viewsDirect Link with page information
A few days ago Blogger changed their video sharing system. Before they provided 1 link like this http://www.blogger.com/video-play.mp4?contentId=e1b5b436fa4803e1 Now to have the video they put a…
-
1
votes2
answers232
viewsHow to identify text size (Lenght) with a state
I was trying to do a CPF validation , with a number to be typed equal to 11, otherwise a message would appear and the text would be deleted. The prolema is like identifying the number of lines that…
-
1
votes1
answer812
viewsIs it possible to have a split() with two or more conditions in Python?
Good afternoon staff, developing a code, I came across a question: I would like to realize a split() with n conditions? Or any efficient way to do? For example: I am requesting for a user to enter…
-
1
votes0
answers59
viewsUpdate search field on a page after x query time
I’m making a query terminal using Wordpress + Woocommerce, as I will use barcode reader and will have ZERO interaction with keyboard and mouse, I need the field automatically reload a few seconds…
-
1
votes0
answers31
viewsValor Autocomplete
Good afternoon, I would like to know how to use the value entered in the autocomplete field in my Controller, even if it is null and not a vehicle registered in the BD. <p:outputLabel…
-
1
votes1
answer477
viewsHow to hide url
I have a pop-up that the close button works as a link, but it appears in the URL and is an "ugly" effect. What would be the best way to get off follows code: <div id="openModal"…
-
1
votes2
answers2285
viewsHow to change the style of an "input" field of type "range" using only CSS (and maybe some webkits)?
I want to modify a field’s value indicator <input type="range"/>. I want to change the format and color of this indicator, as shown in the following images. This is the field I want to modify.…
-
1
votes1
answer139
viewsUse comma input with Bootstrap Touchspin
I’m using Bootstrap Toutchspin to mount an input, <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <div class="form-group"> <input type="text" id="P8473_QTDE"…
-
1
votes0
answers41
viewsAuto-fill with select Woocommerce checkout
I have the following code to generate a select and bring values within options: add_action( 'woocommerce_after_order_notes', 'cliente_woocommerce' ); function cliente_woocommerce( $checkout ) {…
-
1
votes1
answer436
viewsProblem to set mask in an input field with Knockoutjs
I’m unable to apply a dynamic mask (CNPJ/CPF) to the input field of an application created in Laravel 4.2, using HTML5 and Knockoutjs. This is returning the following error message on the Chrome…
-
1
votes2
answers637
viewsHow to add icons before the placeholder
I am working on the front of a login and I am wanting to insert the contact icons for the email field and the lock for the password. I want to insert before the message of placeholder. I am not…
-
1
votes1
answer153
viewsHow to insert the datepicker value of an icone html <i> into the input using Vue.js?
I’m new here Xp. How to insert the datepicker value of an html icone into the input using javascript? I’m using the datepicker of matelialize version 0.100.2 and Vue.js, already fixed the Bug of…
-
1
votes1
answer61
viewsAdd input field each time function is called
I have a module in a system to which I am developing, where, every click on insert, the user clicks on a photo and a marking is added on the exact location of the click. I need every click on the…
-
1
votes1
answer761
viewsAutocomplete in dynamic input
Good morning, everyone. I’m trying to implement autocomplete in dynamic input but it doesn’t work. Already test calling class or id and nothing. Follow the code so they can shed some light on where…
-
1
votes1
answer100
viewsInput with fgets
Hello, I’m having the following difficulty, the moment I call the function of fgets, regardless of whether on any parole, or in the registration function it does not work. At the moment when…
-
1
votes1
answer37
viewsKeep the last change in input saved in the browser
When you click the button it changes the background of the BODY tag, I need that when reload the page it keeps the color that was selected before, I think with localstorage work but I don’t…
-
1
votes1
answer63
viewsHow do I revalidate an input whenever a number is changed?
Hello, The code below checks whether what was entered in the input is greater than or equal to 10 and less than the available value : 100.51. If it’s real, the button needs to turn all black. The…
-
1
votes2
answers87
viewsHow to define which inputs will be accepted by the code?
I have a code where as the user enters data, I want to create a list that will be used for operations later. Output input would be the key "f" interrupting the repeat structure and initiating…
-
1
votes1
answer47
viewsAlignment of Text to Input
Good evening, everyone, I hope you’re all right. I’m having trouble aligning Text on top of Input. HTML <div class="form-group2 col-md-4"> <label for="inputState">Estado</label>…
-
1
votes1
answer237
viewsHow to insert values that have "," as decimal separator?
Hello, I am making a product registration using . Net Core 3.1 and I have the following problem: In the product register there is a field to insert the value of the product, however when inserting a…
-
1
votes1
answer87
viewsRegex in the input frame always valid
I have a form as long as the visitor can enter the phone and am trying to valid using the input Pattern attribute using a regular expression I found in a post on Medium:…
-
1
votes2
answers99
viewsInput in Bootstrap 4 does not take up the full width
<title>Calculadora de Juros compostos</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet"…
-
1
votes1
answer118
viewsHow to make the Input range dynamically by transforming number by Spellnumber(string)
How can I make input(range) numbers dynamically appear within the input(id="demu"). In case here the number has to be typed through the prompt and it print out of the input(id="demu"). Any…
-
1
votes0
answers76
viewsBreak line by pressing Enter and Shift + Enter
I have an input, and I need it to break line by pressing Enter and Shift + Enter, and only send the message by clicking the button. But he doesn’t break the line handleChatInputPress = (e) => {…
-
1
votes1
answer33
viewsI cannot validate input number separately
I’m working on a project, basically an online menu that transfers the order data by Whatsapp. I cloned a input number to capture the amount of orders and multiply by the selected order via checkbox.…
-
1
votes1
answer24
viewsHow to compare two dates using input date and new date object in Javascript
I have two inputs of the kind date. One for the user to enter the start date and the other to enter a final date. I created a variable that receives the current date using only the new Date. I have…
-
1
votes2
answers68
viewsHow to hide class when clicking outside an input
I have a question with hide() and show() have a input that when activated, it must display the "result" class and when clicking outside the input it must hide the "result" class or until you click…
-
1
votes1
answer36
viewsHow to map the value of 2 inputs in React?
I’m creating a kind of Todolist in React and had the idea to use two inputs. The code is divided into 3 components: App.js: import React, { useState } from "react"; import Form from "./Form"; import…
-
1
votes1
answer59
viewsHow to clear an input after clicking the button?
I’m having trouble finding a solution to clear the fields input after clicking the button calculate. Follow code in simplified form function EqBernoulli2 () { const [Pt, setPt] = useState('') const…
-
0
votes2
answers1831
viewsChoose color in <input type="Submit"...>
How could I set a color for the input. Below I have one of the input that I use. <input type="submit" id="Submit69" class="btn btn-default btn-block" value="REP+H4" title="Clique Selecionar as…
-
0
votes1
answer248
viewsHow to "bypass" a word in the input whenever pressing the space key on the keyboard
As the question already says, I want to "go around" a word whenever it gives a space, as in the following examples: I don’t want anything self-completed, I just want that when the "space" is given…
-
0
votes1
answer45
viewsInputdialog vertically
My problem is that I want to create a graphical interface with input fields vertically, but I can only create horizontally. Code: JTextField mapField = new JTextField(5); JTextField tamField = new…
-
0
votes1
answer137
viewsInput with V or F only
You can place an input where it receives only (V) or (F)? <script type="text/javascript"> jQuery(function($){ $("#resposta_vouf").mask("(a)"); }); </script> <input type="text"…
-
0
votes3
answers182
viewsIs there any way to put Input automatically?
Recently in a programming contest I came across the problem of having to put more than 250 inputs in one problem. I wonder if there is any way to put the Inputs other than 1 by 1, at hand!
-
0
votes0
answers93
viewsHow to place an image in the title of an input
Hello, I would like to put an image with a description in the title (when Voce leaves the mouse on top and a message appears) of an input.
-
0
votes1
answer629
viewsinput inserted with "append" is not "recognized"
I’m trying to make a slightly more dynamic form! But when adding new inputs with the append javascript, the same is not recognized. And the effect is not realized. The effect in question is the…
-
0
votes2
answers669
viewsDo not lose input text when switching pages
Good morning, I need to do the following: The user types some text in an input and this text is not lost if he changes pages. This input has no Submit button. How can I do this? It has BD-free…
-
0
votes1
answer95
viewsInput Password - HTML5, Intel xdk, Cordova
I’m having a problem with the input type="password". On Android the input password is always starting with the uppercase letter. How do I click on input the first letter already appears lowercase?…
-
0
votes0
answers75
viewsChrome update changed input type text size
After the last update of Google Chrome input text which are shown within jquery dialogs increased in size in the view. I did some research and tried to fix using the code below: input {…
-
0
votes1
answer1934
viewsHow do I get an image from an input file?
Someone tells me, what do I need to get an image of the input file and show it or save it? do I need to use javascript? or just html and php? I’ve already googled, but I’m finding something…
-
0
votes1
answer523
viewsHow to do onkeypress function in dynamic field
I have a search screen where there are several checkboxes that, when selected, display dynamically generated fields. I would like to put a "onkeypress" function so that when the enter button is…
-
0
votes1
answer585
viewsCalling input value within span
I have this line of code: <input type="text" class="form-control" id="usado" placeholder="Quantidade" aria-describedby="basic-addon1"> <span class="input-group-addon" id="basic-addon1"…
-
0
votes2
answers142
viewsAccess multidimensional arrays of a php input
I have several image arrays in the following format: <input type="file" name="imagens[$id][]"> The $id is changed dynamically. How do I access to take some of the image data, the name for…