Questions tagged as 'javascript'

1
answer

Add subdocuments to document - mongoose

Good evening! I have the following document: { "_id" : ObjectId("5b21a4332a5e3333cc64a12f"), "nome" : "João", "sobrenome" : "Barbosa", "cpf" : "12345678910", "senha" : "Fabet@1010", "viagem" : [ {...
asked by 14.06.2018 / 01:41
2
answers

Appear button after filling two fields

I have 2 date fields and I will use those dates in a select and I would like a "browse" button to appear only when the two fields are filled in, it follows the current code: <form method="post" action=""> Início do períod...
asked by 12.12.2017 / 17:46
1
answer

Numbers in format of cpf (JS)

I get numbers from a cpf coming from the API, then it goes to a table that I did, except that the numbers are not in the format of cpf xxx.xxx.xxx-xx and I would like it to stay, but I do not know how . You just have to click on login and go to...
asked by 14.12.2017 / 13:38
1
answer

"numberFormat" is not a function, but it is

Sirs, The situation is as follows. I've got a function for formatting numbers for financial formats. When applying, it says that it is not a function. But she is. How to proceed? <script> // * Função para formatar em formato d...
asked by 27.11.2017 / 18:55
2
answers

Difficulty removing item from inverted list in Vue

I'm picking up time to use list in Vue. An inverted list for a computed display is displayed on the screen. I need to show it reversed so when you add an item it appears at the top. However, the way I did Vue is lost in removing the correct item...
asked by 29.11.2017 / 20:37
2
answers

Does the import order of components interfere with performance?

Today I wondered about an issue in the import order of components, be it Angular, React, or Vue. Does order of import of order-of-use components improve performance or nothing to see? Where everything is already built and js will only be resp...
asked by 24.08.2018 / 13:59
1
answer

Input calculation with real-time increment button

I have a calculation of a input with a working variable. I have two buttons to increase and decrease the value of input , but when I use the buttons the calculation is not done in real time, it is only done when I click the second t...
asked by 08.12.2017 / 21:13
2
answers

Jquery selector for a single cell of a "table" made with bootstrap

Simple question, but I can not find a way to do it. I need to replace a value within one of the "cells" of each row in this table. Here is the code (long, simple): <div class="col s12">...
asked by 14.08.2018 / 22:55
2
answers

Regex to match in citation title

I'm trying to capture all the titles of citations in scientific articles, my regex looks like this:    (A-Za-za-a-a-ee-i-a-i-oo-a.) (0,1) (0.1) (0.1) (0.1) (0.1) (0.1) (0.1) -Za-z0-9: -aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
asked by 03.04.2018 / 17:18
2
answers

how to assign html code in the javascript variable?

I want to assign this code <div class="menu">...</div> to a JS variable, type this: var Code = '<div class="menu">...</div>     
asked by 25.04.2018 / 02:33