Questions tagged as 'javascript'

1
answer

direct page with onclick inside a form

Basically what I need is for a '' back '' button inside my form. It has to be inside for aesthetic reasons, the back button would be inline with the submit button. I made a summary code: <form action="php/***.php" method="post">...
asked by 19.04.2018 / 15:58
1
answer

Run script only when the screen is off

Speak, I'm trying to automate phone routines with an app I've made and to make it more effective I'm trying to implement a script so it runs whenever the phone's screen is turned off. For example: if the screen is off > run the script, make al...
asked by 16.04.2018 / 15:07
1
answer

Displayed Value and NaN

I'm having problems on a page that calculates a person's BMI. In my script, it was to return the value of each calculated BMI in console.log , however it only returns " NaN ". I have tried to change the values with the function "...
asked by 16.04.2018 / 19:57
1
answer

Function that opens certain address by adding input value

I have an input and would like that when clicking on Search or enter open a certain address adding the value of the input: Example <form align="center" method="GET"> <input type="text" placeholder="Faça sua pergunta" autofocu...
asked by 16.04.2018 / 19:30
2
answers

Angular2-text-mask

How to apply a phone mask where it suits a landline and cell phone using Angular2-text-mask ? I have read the documentation and I have seen what it's supposed to do with a function, but since I'm using formGroup , I do not know ho...
asked by 13.04.2018 / 03:45
1
answer

Retrieve captured id with JS in modal

I have a button that calls a modal to confirm deletion, this is in a table, each line a button to exclude the registration of that line But the way it is, it always deletes the first item from the list <button type="button"...
asked by 13.04.2018 / 21:33
1
answer

Error checking radio with if

I'm trying to do a simple check for if and else, but I'm not getting it, because it only returns true when in fact in case I'm trying to test it was to return false. Here's how I'm trying: function FinalizarCompra(){ var ainput = document...
asked by 11.06.2018 / 02:32
1
answer

Calculate values for each column of an html table

I'm wanting to calculate values from a table. Each column has different values, at the end of the table, I would like to enter the total value. Below is my html. <table class="table table-striped m-table m-table--head-bg-success">...
asked by 11.06.2018 / 04:15
1
answer

Grouping, assigning and sorting values of a multidimensional array in PHP

Hello everyone. I have the following multidimensional array in PHP: Array ( [0] => Array ( [0] => teste0 [1] => 1 ) [1] => Array ( [0] => teste1 [1] => 1 ) [2] => Array ( [0] => teste2 [1] => 2 ) [3] => Array...
asked by 11.06.2018 / 05:32
1
answer

Help in a JavaScript mask for a form

One of the form fields requires the following validation: It should contain 6 numbers, the latter being the result of the sum of the others. If this sum is greater than 10, you must add all the figures of the result until the new result meets...
asked by 01.05.2018 / 01:35