Questions tagged as 'javascript'

2
answers

When I create a Form, it deforms the Button

When I create a Form using JS to open the Button of a Button, the text of the Button is deformed. #openSendForm{ background: #0ebd64; position: absolute; width: 250px; height: 50px; right: 70px; top: 15px;...
asked by 09.01.2017 / 19:55
1
answer

Are callback functions asynchronous, only with specific methods like setTimeout?

Checking the app built by Philip Roberts ( link ) that demonstrates how the browser and webapi event loop works, I noticed that only when we use callbacks calling methods like setTimeout ..., there is manifestation of webapi to consider this cal...
asked by 09.04.2017 / 04:34
1
answer

Copy value from one input to another

I'm needing that when I put any value inside input1, that value already appears in input2. Since both are on the same page, can you do that?     
asked by 31.08.2016 / 21:40
4
answers

Contents of a JSON in a table cell

How do I get the result of a json and play straight into a table from my td? Is the form of getJSON right? <script type = "text/javascript" language = "javascript"> $(document).ready(function(){ $.getJSON('../js/gcs.json', f...
asked by 30.08.2016 / 22:41
1
answer

How do I trigger a function when I click on an input of the radio type?

I have 2 inputs of type radio . In them, I'm trying to trigger my JS method. However, clicking on the radio button , nothing is done. You do not even want to get to the JS function: function onView1(){ alert("oi"); var x = docum...
asked by 05.09.2016 / 23:07
2
answers

Save login input text

Personal I need to record 2 fields of the login screen of my program, I want to give facility to the friend that has logged in, he does not need to enter things like company code, and email. I tried to use the autocomplete but it did not have an...
asked by 03.03.2016 / 18:24
1
answer

How to solve margin calculation problem in JavaScript?

I have the following inputs: 1st Cost, where I inform the value of 6,23 2nd Margin, where I enter the value of 29,21 The JavaScript does the automatic calculation and returns me 8,05 in value Well, that's all...
asked by 04.03.2016 / 14:14
1
answer

How to use session to prevent a modal from opening again?

I have a site in HTML, in the index I put a modal to open as soon as the person enters, this modal is to collect the person's email, however every time the person updates the site the modal reappears . I would like to know if you have something...
asked by 17.03.2016 / 16:19
2
answers

How to get input value with click div (multiple divs with same class) with jquery?

I have the following code: <div class='premios text-center col-xs-12'> <div class='div-img-premio'> <img class='img-premio img-responsive' src='$imagem'> </div> <p class='nome-premio'&g...
asked by 11.03.2016 / 19:13
1
answer

Hide address bar on mobile devices

Is there any way to hide the address bar in mobile browsers?     
asked by 23.03.2016 / 15:23