Questions tagged as 'javascript'

2
answers

How do I update a variable in a v-for in Vue JS?

I have the following code in my view: <div> <div v-for="(solicitacao, $index) in solicitacoes"> <div class="box-image" :class="{'box-rejected' : solicitacao.$$reprovado}"> <div class="box-image-he...
asked by 25.04.2017 / 18:38
1
answer

javascript counter for php controller

I have a form with dynamic inputs: <form method="post" action="getDatabases/getCurso.php"> <div class="field_wrapper_curso">...
asked by 15.03.2017 / 20:28
2
answers

Countdown incorrect date

I'm using Countdownjs to insert a count in my project but it is returning the wrong day. I'm using AngularJS, here's the directive I created for the count: .directive('tempoPercorrido', function($interval){ return { link:...
asked by 15.03.2017 / 19:21
1
answer

Recreate HTML elements from one Div to another Div by ClassName

Well, some will suggest me to use cloneNode(true) of Javascript to make a appendChild(var) in the DOM . But for this case, I already used this native feature, but it did not meet my need. Why, when I make a faithful clone of yo...
asked by 08.04.2017 / 16:57
3
answers

How to get a word inside a string (phrase) in Node.JS

I have a question, I have a string: var frase = "Ola, bruno"; I need to get what is written to the comma and then take what is written after the comma, for example: var ABC = "Ola"; var EFG = "Bruno"; How to proceed?     
asked by 12.05.2017 / 22:57
1
answer

Sum of select values entered in the input

I'm giving a practiced ionic 2, I'm building a basic app for this, with some interesting functions to study. I want the user to select two "ion-options" from two different ion-selects, these results (in numbers) are summed and shown in the "i...
asked by 11.05.2017 / 21:48
1
answer

button copy and paste with jquery

I would like to 'create' the copy command and the paste command with jQuery. I have a form and I need to put a paste button on it to make it easier for the user The user clicks to copy the embedding URL of youtube and in my form would have...
asked by 02.03.2017 / 20:06
1
answer

Calculate subtotal even if all fields are not filled

I have a form where procedures values need to be entered to be calculated at the end, but values are not always entered in all fields. I wanted to know how validation for the procedure total exits even if values are entered only in two fields fo...
asked by 17.05.2018 / 14:37
1
answer

Select only ONE checkbox with vanilla javascript and bootstrap 4

I have the following code that generates the form printed on the image ... <div class="form-check form-group" id="areaTermosCondicoes"> <input type="checkbox" id="accept-term" class="form-check-input"> <label for="acce...
asked by 17.05.2018 / 17:48
1
answer

Syntax error Adjacent JSX React

I created a component that has six images but when compiling my code I get the following error. AndthisismysourcecodefortheImovelPhotoscomponentimportReactfrom'react';functionImovelPhotos(){return(<divclass="col s12 m3 l3"> <...
asked by 17.05.2018 / 20:54