Questions tagged as 'input'

2
answers

Popular input with data from the same table via dropdown

I have a select that pulls the name of a product. I want you to select the product name via dropdown and automatically fill in an input with product code. The information is in a single table, in the id, id_produto, nome ,serial, log...
asked by 08.09.2014 / 20:21
1
answer

Hide a div by clicking the button with CSS

Can you hide a DIV with this button there? .button { display: block; position: absolute; width: 240px; height: 80px; top: 50%; left: 50%; -webkit-transform: translate(-50%, -50%); -ms-transform: translate(-50%,...
asked by 30.10.2018 / 00:06
1
answer

How to add and remove required input with jQuery?

I have a select with two option , when I select the first option I want it to show me an input field strong> with the attribute and when I select the second option I want it to do the same, only removing the required input . The...
asked by 26.11.2016 / 23:36
3
answers

remove dynamic div with jQuery counter

Hi, I'm generating fields dynamically using Jquery, and for each field I add at the end of the id a counter. I was wondering how I could do to remove the div that encompasses the button and the fields. this is my form: $contador = ''; fo...
asked by 28.10.2015 / 20:17
2
answers

Adapt 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)) { if (document.for...
asked by 25.02.2015 / 14:26
1
answer

Automatic ticket generator

I'm developing the Dijkstra minimum path calculation algorithm using C language, I'm making several solutions to the same problem and then testing which one is most efficient. For this I needed to generate multiple entries, including huge ent...
asked by 20.09.2014 / 19:46
1
answer

How to detect line break in Python input?

I need to read test cases in 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 number of numbers to come later. Each line is...
asked by 29.09.2018 / 19:05
1
answer

Add character in an input

The person types their height (which always has three digits). I want autocomplete, example: - The person types- 200 And the software will convert to 2.00     
asked by 28.10.2017 / 07:54
1
answer

Change src attribute of an image when uploading via file type input

Hey guys, blz? I need a code that when uploading an image via input file type it is displayed in a preview type. What I have so far is this: HTML: <div class="card"> <img class="card-img-top" src="<?=$foto?>" id="fo...
asked by 03.11.2017 / 20:21
1
answer

Calculate input dynamically with jquery

Good afternoon, I have a dynamically inserted input code function new_input() { $('<x>' + '<input class="cod" id="focus' + rscn +'" placeholder="Código" />' + '<input class="desc" placeholder="Des...
asked by 05.04.2017 / 19:55