Questions tagged as 'javascript'

2
answers

Remove blank option select option angularjs

Good afternoon, I need to remove the blank line that comes as default in the angularjs select, I would like to put a default value instead of the blank line. I researched several forums and tried many options but nothing worked. can you help me?...
asked by 10.10.2017 / 20:44
1
answer

How to remove the first key that surrounds all the values of a JSON

Is it possible to remove the first key { } from a JSON and add in lines below (Enter), of each value? var obj = { "arvore": "/", "avo": "obadias", "pai": { "eu": "Leonardo" } } class Access { static getRaiz...
asked by 14.10.2017 / 02:41
1
answer

Filling table

I have a function, but I do not know how to get it to recognize data with more than one record linked to a code, for example I have this product code ABITA and it has 5 types and descriptions linked to it. ButinmyfunctionIcanonlysearc...
asked by 13.10.2017 / 15:38
1
answer

How to add elements of an array that is a return of another function in JavaScript?

I can not do this sum, returns NaN, any suggestions? ps: I'm a beginner in JS.     
asked by 14.10.2017 / 01:50
4
answers

I want to subtract elements from an array in JS, but that returns several results

I want to subtract values from a array in JavaScript, but it is not a subtraction of a value from a given array I want to do the following: I have an array any that brings me actual values from my bank. In this case I will put one to exe...
asked by 13.10.2017 / 15:34
1
answer

Compare angular data Js

I would like to compare two dates in angular js, the two dates are like this: Sat Oct 14 2017 11:43:46 GMT-0300 (Hora oficial do Brasil) Sat Oct 14 2017 17:53:51 GMT-0300 (Hora oficial do Brasil) How do I get these two dates?     
asked by 14.10.2017 / 16:45
1
answer

How to do this in Javascript? [closed]

How to make when the user presses the checkbox to appear a counter of how many units he wants?     
asked by 28.09.2017 / 04:01
1
answer

Send modal form on a normal form

Ihavearegistrationformandithasalink(alreadyhasanaccount>)thatexecutesanotherform(login),thisbeingamodal.Myproblemisthatwhentryingtosubmit/submitthemodalform,itrequiresthatyoufillinthefieldsofthenormalform(cadastre)thatwasopen,becausethisregistr...
asked by 28.09.2017 / 00:10
1
answer

Why does DELETE give error?

I have the following function in jquery that gives the delete in the registry. It even deletes the record but does not go to success , it goes to error . Why? function deletar_cliente(id_cliente) { var mensagem_sucesso = "";...
asked by 04.10.2017 / 22:49
1
answer

Javascript - Logical Manipulate Array Data

I have a very complex logic problem. I have to compare 4 arrays and get them to work together. I'll explain better Example of how you can come: var mesA = [ "fev", "mar", "jun" ] var valorA = [ 50, 50, 50 ] var mesB = [ "jan", "fev",...
asked by 05.10.2017 / 17:19