Questions tagged as 'input'

2
answers

Is it correct to use the Input tag inside a Label tag?

I was taking a look at the W3Schools tutorial, where I'm teaching you how to use% type% input in Bootstrap. According to one of the examples, I saw the following code: <div class="checkbox"> <label><input type="ch...
asked by 25.10.2016 / 13:03
2
answers

Function Optimization (probably with for loop)

I'm having difficulty developing when we talk about for ... The basics I can understand now in practice ... People have developed this code and I believe it can be reduced to a few lines with. Notice that in the input range change it appears...
asked by 24.01.2017 / 22:47
2
answers

how to automatically fill in an input?

As the code with several textfields shows, I want to make visible just dataEntrada, dataSaida and KM and from these 3 fill in the others that will be invisible, the amount to be paid will be displayed in an alert when you click on simulate. Th...
asked by 03.06.2018 / 01:27
1
answer

How safe is it to use "password" or "text" input?

Recently we are in a wave of using the combination of input of passwords with the option to hide / display the password (*** -> abc) with the "eye" technique. I understand this purpose because it greatly improves the UX side of the...
asked by 09.09.2016 / 13:59
3
answers

Explaining the name in php

Could someone explain the difference and where can I change it.: $nome=$_POST['nome']; This $nome I know that it is default in case to use <input type="text" name="nome"> More in this case, is it mandatory to have this...
asked by 18.09.2018 / 22:13
2
answers

Why is the initial state of an input with required invalid?

When I place one or more constraints on a <input> , its status initially appears as invalid . As in the example below: input { border: 2px solid #ccc; padding: 8px; } input:invalid { border-color: red...
asked by 02.12.2014 / 23:04
2
answers

How to make a span display the value of a range as it moves it with the mouse? [duplicate]

The function is working, however I want to update the value in <span> as I move with the mouse. Can anyone help? function mostrarPorcentagem(novoValor) { document.getElementById("exibePercent").innerHTML = novoValor; }...
asked by 13.01.2017 / 16:44
1
answer

Blade OR syntax within the Laravel Collective input value

The following input works normally, but when I move it to the Laravel Collective syntax, it says that the $servico variable does not exist. It does not even exist, so it should display the value null ). The syntax of...
asked by 05.10.2017 / 13:30
2
answers

How to remove Input image border

I'm using a input of image to function as a favorite button <input type="image" class="btnFav" title="Favoritar" /> But it has a square border on it I've tried using css below, but nothing worked. outline-color:...
asked by 20.11.2015 / 23:56
4
answers

Empty input can not receive zero value

I have a form with more or less 5 inputs , at any given time any of these inputs will be worthless, and I want to find out the lowest value between them, but whenever it has one or more empty inputs it returns the value 0 and indicates that...
asked by 10.11.2016 / 12:21