Questions tagged as 'javascript'

2
answers

input type data only accept data over 18 years

How do I put a condition inside the input of type date so it only accepts dates greater than 18 years, I was wondering if it does not have a condition to lock input for dates older than 18, it's for a form where only more than 18 can submit the...
asked by 23.03.2017 / 18:28
1
answer

undefined function in window.onload?

Well I declare a function in a javascript file javascript file: window.onload = function(){ function func(x,y){ //faz operacoes em x e y e nao retorna nada } } But in the html file, when I want to call this function by passin...
asked by 23.03.2017 / 20:04
3
answers

How can I pass php data to javascript in this case?

I need to pass the latitude and longitude data of the addresses that are within the 25km radius to the javascript function that creates the map, follow the code I have made so far (Yes, I am a beginner): <script type="text/javascript"> /...
asked by 24.03.2017 / 17:42
1
answer

Transforming clicks into JS function

I'm trying to turn my clicks into functions, since the code is being repeated in link This is the original code: $("#div1").click(function() { $("#widget-body1").slideToggle("slow"); }); $("#toggle1").click(function() { $("#widget...
asked by 02.04.2017 / 02:25
1
answer

From a selected checkbox, get the value of a date attribute next

Good afternoon, I have a checked checkbox (check = true) <div class="form-group col-xs-12 col-sm-12 col-md-3 col-lg-3 space"> <div class="input-group"> <span class="input-group-addon"> <input type="radio" id="c...
asked by 22.03.2017 / 18:56
3
answers

Put the options of an input select into a variable

Good evening. Is it possible in a select multiple to save the chosen options in a variable and keep the options chosen? Example: <form class="form-inline"> <select id="opcoes" multiple name=opcoes[] > <option...
asked by 04.04.2017 / 23:54
1
answer

2 different forms with select field

I need 2 forms on the same page and I'm trying to create a select field in the end so I can choose between one or the other, I'm trying here several ways without success! please help, follow: <div class="module-body" id="div1"> <s...
asked by 05.04.2017 / 14:10
1
answer

How to do small animation with js

Hello, I would like to make a little responsive animation to show information. For example, I have this rectangle: <div id="mainDiv" > <div id="Rectangle" style="width: 200px; height: 300px; background: #3c9e43; margin-lef...
asked by 05.04.2017 / 16:06
1
answer

Help with Gulpjs

I'm having a little problem with gulp's tasks. I'm trying to listen for file changes with watch and refresh browser with browser sync. Follow the code: var gulp = require('gulp'); var sass = require('gulp-sass'); var pug...
asked by 06.01.2017 / 23:34
3
answers

Change a select based on the selection of another select (from data in the DB)

I have the following problem: In a form, I need to make a selection of a MANUFACTURER, and according to this selection, it will display the PRODUCTS bound to that manufacturer only. I have the following table where I register the MANUFACTU...
asked by 05.01.2017 / 17:40