Questions tagged as 'javascript'

5
answers

How to return the sum of numbers of an array with indices of value greater than or equal to 2

I have the following array: array[0,2,0,0]; I need to create a function that adds only the indexes with values greater than or equal to two, how should I proceed?    In this example I should return 2;       array [0,2,0,0];       In thi...
asked by 01.11.2016 / 18:37
4
answers

What is the opposite of "display none"?

Before doing some research on the properties of the display. I want to hide some div and used display: none . To re-display the div display property should I use? (I'm working with Javascript)     
asked by 26.01.2017 / 10:16
2
answers

Array count in VUE with conditional

I need to figure out how many records in the array below have the field active as true, how can I do it? [ { "name": "Quero Vender", "active": false }, { "name": "Quero Comprar","active": false } ]     
asked by 13.12.2018 / 21:14
2
answers

How to return different answers with different values in equal classes?

I have two different values that should return different answers, but the classes are the same, how to solve? See that the answers are wrong. .Container-Produto{display:block;border:solic 1px #ccc;} <script src="https://ajax.googl...
asked by 25.10.2014 / 01:20
2
answers

Place button click Enter

Can one help me put the button on the Enter button using Javascript or Jquery ?     
asked by 22.12.2014 / 11:59
2
answers

Calculate how long it takes to perform a function

I have to create a function in JavaScript that takes all the id's from a table and makes a draw with id's of the same table so that a same id does not fall with itself, and that there is a possibility that this id can being in the other "...
asked by 26.03.2015 / 14:56
3
answers

How to change date format in bootstrap from mm / dd / yyyy to dd / mm / yyyy

This is the error you are giving:   Uncaught TypeError: Can not set property 'pt-BR' of undefined Insert some links to format the date, second time I picked up the net and even then the date is still wrong (another format) and I got this...
asked by 03.07.2014 / 21:36
3
answers

Call a method of a Javascript class (OOP)

asked by 19.08.2014 / 19:03
2
answers

Image Cutting

I wanted to upload images with dynamic Crop. I have already looked at tutorials and etc., and I can not do it. I wanted to, for example, load an image by input and at the time open a modal with dynamic Crop, type Facebook, then send the crop...
asked by 18.02.2015 / 15:49
2
answers

How do I pull content via AJAX from a site that has a menu header and a fixed audio player?

How can I create a site that uses AJAX to load pages? What is the best way to do this without bugs and really functional? I have plans to create some sites that have a player de áudio , which can not stop when a person goes to...
asked by 15.07.2014 / 05:52