Questions tagged as 'javascript'

2
answers

Remove comma out of brackets - Regex

I'm trying to remove the comma that is located outside the brackets of the following excerpt: 2||Azul||Cor||["#1983ff", "#1983ff"],3||Amarelo||Cor||["#fff73d"] I need the return, this way: 2||Azul||Cor||["#1983ff", "#1983ff"]3||Amarelo||C...
asked by 31.10.2016 / 20:10
1
answer

How to make this effect with Javascript? [closed]

I'm still studying Javascript and a friend of mine introduced me to a website that has a very nice effect on your texts. The site is this: (example site) As we can see, when the site loads, it gives an effect where the elements are formi...
asked by 12.01.2017 / 20:52
1
answer

Validate input size with AngularS

I have a field in a form that I need to validate with angle. The field must be up to 11 characters long. If you have less than 5 you should get an error message requiring the user to be numbered correctly. Angle Controller angular.module(...
asked by 10.02.2017 / 19:17
2
answers

How to create a shortcut inside a page?

To add a new item to my database there is the Add button, however I would like to add a shortcut to it that performs the same function as the button. For example, when E is clicked on any question in the OS, it goes into edit mode. In my...
asked by 22.01.2017 / 15:34
1
answer

Calculate difference between dates until minutes javascript!

I have the following date in an input: 25/09/2016 11:20:00 for example. I need to calculate the difference for the current date and return at least until the minutes. Can be in jquery or javascript. How do I do it?     
asked by 27.09.2016 / 16:19
2
answers

.addEventListener () is not a function

I'm setting up a script for modal, however an unexpected error occurred, the console says:   Uncaught TypeError: loginBtn.addEventListener is not a function '"," at modalsGeneral (index.html: 233) "and" at index.html: 235 ", How can I fix...
asked by 19.04.2017 / 14:27
1
answer

When clicking button, increase or decrease height of a div

I created a button inside a div ( #divteste ) and I would like that when I clicked the button this ( #divteste ) would increase height and clicking the button again would decrease height and if you can use a move or ani...
asked by 03.12.2016 / 00:51
1
answer

Retrieve Value Array [closed]

I have an array of strings. I'm trying to retrieve the location value, but I'm not getting it. Take a look at the code: var cord = ["-19.45738,-44.2416695"]; for(var i = 0; i<cord.length; i++){ var location = cord[i].sp...
asked by 24.11.2016 / 12:48
1
answer

Anonymous jQuery function passing parameters to call it

Is it possible to pass parameters in a jQuery function so that I can use it multiple times with multiple elements? I need to leave it with indeterminate elements and pass them as parameters by determining them when calling the function, just as...
asked by 24.12.2016 / 14:05
4
answers

use f2 to click button with jquery

I have the following button on my site: <button onclick='document.location="google.com.br"'>FINALIZAR</button> How do I get it to click when I press f2? I wanted to do this using jquery. Can anyone help me?     
asked by 29.11.2016 / 19:30