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
-
3
votes1
answer720
viewsFocus on the first enabled form field
This way I activate the Focus in the first field of the form that is not hidden: $('form:first *:input[type!=hidden]:first').focus(); As active the focus in the first field of the form which is not…
-
3
votes1
answer222
viewsHow to handle multiple inputs with the same name in Java?
How do I manipulate in the back-end using multiple Java input's with the same name? For example: <input type='text' name='telefone' ><br> <input type='text' name='telefone'…
-
3
votes2
answers1424
viewsHow to view data from a query in Modal?
I have a button type="button" and I want him to capture information from my Texts for me to make an appointment at Mysql and display this result in a modal. However, I’m only able to capture this…
-
3
votes2
answers614
viewsUpdate database via input using ajax/php
I need to update a table in the database, reading the data entered in the input, by clicking the button. This is what I have so far: HTML: <td>ADSL</td> <td class="superdanger">…
-
3
votes2
answers3037
viewsCSS Input Zip code
Good morning, I would like to make my input text accept only four numbers and dps of that put "-" and accept only three numbers. This is possible only with HTML and CSS?
-
3
votes2
answers933
viewsSum/multiplication of dynamic and total inputs in R$
Good Afternoon, I need a great help, I’m caught in a problem that apparently should be very easy! but I’m not managing to evolve. I have a code with the following fields: In my script consists of 5…
-
3
votes1
answer397
viewsRelating dynamic inputs with datalist to other dynamic inputs
I’m new here and I’m curious about programming, so forgive me if I talk nonsense, but I need help. I have a form with the option to insert inputs dynamically. Whenever an "item" is added, two…
-
3
votes1
answer393
viewsWhy does input work in Python 3.x and not 2.7?
I ran this same code with just a few minor differences in syntax to suit the right mode of script in Python version 2.7.9 and also in Python 3.4.2 Script I ran in Python 2: name=input("tell me your…
-
3
votes1
answer85
viewsPrevent browser autocomplete in password
I have a lock screen that depresses the user by inactivity, asking only the password of the same to access again. It happens that this screen has no use if autocomplete is on, since anyone can touch…
html security-guard input browser self-cmpleteasked 6 years, 7 months ago dalton gonzalo Fuentes 155 -
3
votes3
answers631
viewsLimit values for input text
I have two inputs and I need the term input value to be greater than the start input value. Both are text type. Someone could help me ? <div class="w3-half"> <label>Data de…
-
3
votes3
answers4043
viewsField Percentage in HTML
good morning! I am developing a restful application, using angular 4, components of Primeng (version 5), HTML 5 and CSS 3 on the front. I came across a problem that apparently can be considered…
-
3
votes1
answer135
viewsJavascript - Hide children from radiobutton when selecting another radio from the same group
I have a group of Radio Button, some of them have other inputs as children, if you check the Input Pai they must appear, if it is unchecked they must disappear. As in the HTML down below: <div…
-
3
votes3
answers114
viewsReading undesirable characters - Python
A way to separate words from a string provided as in the method below: entrada = input().split(" ") Doubt: If I want to exclude more than one specific character (" ,&ˆ*!!:") not necessarily in…
-
3
votes3
answers1089
viewsFunction - show password!
I rephrased the question, what I’m trying to do is the following, Goal is to do the same as IE does in inputs type password! <style>.show_key{display:none;}</style> <script…
-
3
votes3
answers1959
viewsHow to determine which characters can enter the input?
I have a login form and I have to limit the input to receive characters with the following conditions: A capital letter A number A Special Character A minimum of 8 characters Special characters can…
-
2
votes2
answers724
viewsPopular input with data from the same table via dropdown
I have a select named after a product. I want you to select the product name via dropdown it automatically fills a input code of the respective product. The information is in a single table, in case…
-
2
votes1
answer668
viewsAutomatic input generator
I am developing Dijkstra’s minimum path calculation algorithm using the C language, I am doing several solutions to the same problem and then testing which is the most efficient. For this I needed…
-
2
votes2
answers1218
viewsIncrease Size Field Balls for Password
i want to increase the size of the "balls" of a password input, I thought input { font-size:140% /*exemplo*/ } for example. However, only the bar that keeps blinking at the time of typing that…
-
2
votes2
answers560
viewsLimit the amount of results that appear in the jquery-Iu autocomplete
I’m using the jquery-Iu Autocomplete and everything is working perfectly. However I would like to improve the script at one point. I would like to limit the results. Because if I type To no input,…
-
2
votes2
answers122
viewsAdapt script that uses checkbox for radio
Good morning, I have the following code: function exibe() { var tipo = "${mainForm.tipo}"; var man_tipo = "${mainForm.man_tipo}"; if ((man_tipo == 'B' && tipo.search('V').toFixed(0) < 0))…
-
2
votes2
answers5307
viewsHow to disable checkbox without using disabled?
How could I inhibit the alteration of a checkbox unused disabled, given that I want to send it via form. <input type="checkbox" name="option1" readonly="readonly" checked="checked"/> // esta…
-
2
votes3
answers283
viewsremove dynamic div with jQuery counter
Hi, I am generating fields dynamically using Jquery, and for each field I add at the end of id a counter. I wondered how I could do to remove the div that encompasses the button and the fields. This…
-
2
votes1
answer122
viewstwo different Patterns in the same HTML input
Hello, I wonder if there is a way to put more than one Pattern as an alternative to the first in html for example, a person can only use Gmail.com and Hotmail.com, so that they fill in with a OR…
-
2
votes1
answer137
viewsLabel stylization in a file type input
There is a way to style a label in a certain way only when the input of the kind file is with a selected file ?
-
2
votes2
answers1018
viewsInput type image does not send the form?
I’m having a problem to give Ubmit with input type image, it simply is not recognized as Submit and does not send the data to be processed by POST. Below are the forms that did not work. Trying to…
-
2
votes2
answers696
viewsReplace an input value and keep the previous value
I need a input[type="text"], in which the user writes anything ("abc", for example), but in the visual appears other symbols, but keeping the previous value when picked up by Javascript or sent in a…
-
2
votes1
answer1631
viewsForm validation php and ajax
Sorry if the question is silly, but I don’t know much about ajax and I’m trying to make a basic form to test the validation using ajax and php (if possible). Good reading on the internet and seeing…
-
2
votes2
answers790
viewsInputbox lock CTRL+V
I have the following code: vResultado := InputBox(Application.Title, 'Leia o cartão de Segurança:', ''); There is a way to block copy and paste in Inputbox?
-
2
votes1
answer1579
viewsAdd point to every three numbers (thousand) in an input range tooltip?
How do I add "mile point" to the numbers, R$1000 for R$1.000 in an input range tooltip: Code: var mySlider = $("input#valores"); $('#valores-credito, #valores-parcela').slider({ formatter:…
-
2
votes2
answers783
viewsCSS - How to select the last sibling?
I have the following HTML structure: <form action="" id="form-contato"> <label for="nome">Nome</label> <input type="text" name="nome" id="nome" placeholder="Nome"/> <label…
-
2
votes1
answer277
viewsDevice keyboard is over Input
I have an application in Xamarin using Hybriwebview (HTML screens). Inside it I have a text input at the bottom of the screen and when I click on the input the keyboard of the phone is over my…
-
2
votes3
answers1302
viewsreceive two houses after the comma
I need to get a cash amount and I’m only getting one house after the comma. example 75.50 I get 7.5 and 7 I need to receive 7.00; I am using Jquery;
-
2
votes2
answers8681
viewsHow to add and remove required input with jQuery?
I have a select with two option, when I select the first option I want him to show me a input field with the required attribute and when I select the second option I want him to do the same, only by…
-
2
votes0
answers482
viewsStore data from a form of various input in some kind of file and then re-submit it in the same form?
I created a form, but now I would like to save the data in a file to later recover them, I found this question: Storing data from a form, that helped me a little, but when implementing more…
-
2
votes2
answers2898
viewsInput the variable
I’m making a simple shipping form. Basically: The user inserts the value to be downloaded, fills in the data and when clicking the confirm button, the result is displayed on the screen. The problem…
-
2
votes1
answer119
viewsDisregard words in input
I would like to know how to override/disregard certain floods placed by users in the input. I have an input where the person should send me the URL of a site, in case they should send the url as a…
-
2
votes1
answer857
viewsCSS Style input range
I need to do an input range for age group definition this way: I thought I’d do the "big" bar with this 20-by-20 fixed strip, or a non-standard bar like in this example, but I’m new and I don’t…
-
2
votes3
answers1523
viewsHow to print Javascript variable value in HTML tag?
I’d like to limit the selection of input date this way, but it’s not working. <script type="text/javascript"> var data = new Date(); var dia = data.getDate(); var mes = data.getMonth(); var…
-
2
votes1
answer376
viewsAdd character in a <input>
The person types her height (which always has three digits). I want you to autocomplete, example:- The person type-200 And the software convert to- 2.00
-
2
votes2
answers108
viewsReplicate val() content in span
I found this code that works very well in inputs: <script> $(function() { $("[name='email']").keyup(function() { var email = $(this).val(); $("[name='login']").val(email); }); });…
-
2
votes2
answers64
viewsPHP variable problem with pelicas
I’m bringing this mysql database variable for a text input, but the result I’m not showing because of the pelicas. $cota = '946.9"1968/1975" AMA Ant'; echo '<input type="text" value="'.$cota.'"…
-
2
votes2
answers453
viewsFocus on the last Jquery character
I need when the field gets the focus, the cursor to be in the last character. The way the cursor is at the beginning of the field even if the field is not empty. function gravaObs(unidadeObs) { var…
-
2
votes0
answers100
viewsAuto Complete Google
The input: <div class="input-group" style="width:50%;margin-left:auto;margin-right:auto;"> <input class="form-control" vs-google-autocomplete="autoCompleteOptions" ng-model="address"…
-
2
votes2
answers52
viewsSearch only form fields with value other than 0 and put in PHP variable
I have a quote form with 70 products in which the user chooses the amount of products he wants from each one. All are named with id P1, P2...P70 and are number type inputs. <form…
-
2
votes1
answer87
viewsTable with 2 td with select inputs showing return only in the first row
I have 1 table with 1 list of modules, and I have 2 columns that have options that can be chosen through select. The point is that the select’s only load the data in the first row of the table, the…
-
2
votes2
answers2257
viewsSet current date in Input type Date
I want to set the current date in this input type date; using this way with php it only gives the value of the current date, but viewing shows only dd/mm/yyyy, but inspecting the code the value of…
-
2
votes1
answer921
viewsRead two numbers in a single line in Portugol Studio
I will participate in a competition in a few days, and for data entry it is necessary to make a input of more than one value on the same line. For example: Instead of the user entering the first…
-
2
votes2
answers684
viewsHow to detect line breaking in Python input?
I need to read test cases of the following format: 3 1 2 3 4 52 2 1 87 10 51 32 1 36 21 34 32 12 34 45 200 (... 200 numeros separados por espaço) and so on, where the first number indicates the…
-
2
votes1
answer1061
viewsChange src attribute of an image when uploading via file type input
Eae you guys, blz? I need a code that when uploading an image via file type input it is displayed in a type of "preview". What I got so far is this: HTML: <div class="card"> <img…
-
2
votes4
answers253
viewsmaxlength in coin mask
I’m wearing this coin mask, it works until well put a maxlength in the input it does not limit the amount of numbers. <script language="javascript"> function MascaraMoeda(objTextBox,…