Posts by Rapha • 323 points
16 posts
-
-1
votes1
answer1755
viewsQ: Add months to a javascript date
I own a field that receives a date, from that date it should add up to 1 month //Funcao das datas function addData() { //Pegar data Atual para somar var currentDate = new Date(); //pegar data atual…
-
1
votes1
answer127
viewsQ: Funcao adicionar Anos ao campo date Javascript
I need a Javascript code that adds years to the selected date function calculaData() { var datainicial = document.getElementById("dataselecionada").value; var partes = datainicial.split("-"); var…
-
3
votes1
answer806
viewsA: Add days to a javascript date
<input name="data" type="date" id="data" /> <input onchange="calculaDataFin();" name="dias" type="number" id="dias" size="70" /> <input name="datafin" type="date" id="datafin"…
-
1
votes1
answer806
viewsQ: Add days to a javascript date
Hello I need help in a function that picks the date of a date field with the number of days and displays the new date as per Example: <label>Data</label> <input type="date" id="data"…
-
1
votes3
answers232
viewsQ: Convert Date to date field
I have a field that gets a date value like in the example: 24/10/18. I need to replicate this field to a date type but following the value rule that the date requires. Example: 2018-09-24. That is,…
-
2
votes2
answers547
viewsQ: Remove text after JS character
I need to remove everything in front of * (asterisk) Javascript example: <form> <div class="form-row"> <div class="col"> <label>Carro</label> <input type="text"…
javascriptasked Rapha 323 -
1
votes1
answer961
viewsQ: Catch only the month of a selected JS date
As an example below, I would like to take only the month when selecting a date and insert in the Mes field with JS. <link rel="stylesheet"…
-
0
votes2
answers975
viewsQ: Save PDF Form - Bootstrap
I would like to save the form in PDF or print but keep the layout displayed on the screen. Example: <!doctype html> <html lang="en"> <head> <!-- Required meta tags -->…
-
2
votes3
answers883
viewsQ: Allow Select PDF only in JS
I wonder how to do that when choosing the file to upload it filter by extension . html native pdf or by JS, Jquery. Using type="file" it brings all the files. <!DOCTYPE html> <html>…
-
1
votes2
answers65
viewsQ: Only allow to select two days ahead
I would like a javascript function that allows me to select only two days ahead of the current one. for example: today is day 28/06/2018 it allow me to select from day 3, as it would count day 29/06…
-
-1
votes1
answer81
viewsQ: Release Field after date
Hello I need a javascript code in which I will have two fields one with the date and a Description that will be unlocked according to the given date and block the previous Example From the day…
-
0
votes1
answer1312
viewsQ: Add days to current date
I need to take the current date and add days according to the selected function calcular(){ var valor1 = parseInt(document.getElementById('dias1').value); var valor2 =…
-
1
votes1
answer83
viewsQ: Create a sequence from fields
Hello, I would like to join the values of the fields and add 1 according to the last input value, Example: javascript <!doctype html> <html> <head> <link rel="stylesheet"…
-
3
votes2
answers1125
viewsQ: Display default date field BR yyyymmdd to dd/mm/yyyy with javascript
hello i have a field that automatically receives a date from another system, but it sends me in American pattern, I would display on the screen with the default dd/mm/yyyy; <div class="form-group…
-
1
votes3
answers59
viewsQ: Take part of the value of the field
hello, I need to take part of the input value function exibir(){ var elem = document.getElementById("campo3").value; var sel = document.getElementById("campo4").value;…
-
0
votes3
answers1470
viewsQ: Hide DIV when loading the tab according to select
Today I use this function to disappear the div, works perfectly, But I need the field already selected /option value="boletos" Selected/Boletos/option/ but the function is only executed when it…