Questions tagged as 'javascript'

1
answer

Check equal data in SQL with onBlur

I need to type in input , it checks the database if there is an equal record, such as those fields of user creation in email. I think it's in onBlur of input , and using if == in the command, the problem is: how do I call SQL...
asked by 20.05.2018 / 01:06
1
answer

Validate date field with javascript

I have a field of type date , with name txtdata_nasc . I need a validation for it. I need you to have a button on his side that can validate it. If a person enters a birthday under the age of 18, I want a alert("Pessoas menores...
asked by 11.05.2018 / 05:18
2
answers

Change the color of the site in a click of a button!

Good people! I have a button with 5 buttons, when clicking these buttons, the color of the site will change, I was making this process to change the color in Javascript, but I do not think very feasible ... What better way to do this? Make 5 cop...
asked by 14.05.2018 / 23:44
1
answer

Change the color of the route (road) of google maps

CananyonehelpmewithhowthisblueroadcolorchangeswhenIsetaroute..IalreadyhavethestyleallreadyIjustdonotknowthevariablethatappliestothatpartofthemap..Obg/*Estilizandoomapa;Criandoumarraycomosestilos*/varstyles=[];/*crioumobjetopassandooarraydeestil...
asked by 11.05.2018 / 07:09
2
answers

A jQuery Get () inside another jQuery get ()

I need to execute a jQuery Get() inside another, but I can not do it at all, it simply ignores the second Get() without returning what I need (the username of the second get() ): $.getJSON("https://api.mercadolibre.com/...
asked by 11.05.2018 / 16:01
1
answer

How to create the mechanics and appearance of the zoom effect used in the reveal.js framework?

Example: Reveal Zoom > Objective: Study the mechanics and appearance of Zoom with the best algorithmic solutions. - From the problem of appearance: 1 - When inspecting the < section > looking for black background pattern (back...
asked by 13.09.2018 / 19:22
1
answer

countdown in javascript

When it comes to the "end" and I want it to change color, can you tell me how to do it? <!DOCTYPE html> <html> <head> <title>javascript</title> <meta charset="utf-8"> <link type="text/css" rel="styl...
asked by 13.06.2018 / 17:00
1
answer

Hide next and previous button in last and first content

I'm using a carousel with bootstrap, but I need the next button to add when the last item arrives and the previous button is hidden while in the first content. My code is not working, but I do not identify the problem, so I'll put it down. H...
asked by 13.06.2018 / 20:08
2
answers

Calling a function after validating a form in Bootstrap

I'm trying to do an exercise that shows values after the user has supplied the correct data in a form. I tried using <form class="needs-validation" onsubmit="calcular()" novalidate> But just clears the user data instead of doing the c...
asked by 14.06.2018 / 01:49
1
answer

Return an array from a function in javascript

I'm trying to return an array of a function to assign to a model in Angularjs. But the function return is undefined , but when I give console.log before returning the array is correct. How do I return the array clientes...
asked by 05.06.2018 / 15:27