Questions tagged as 'javascript'

1
answer

.click function being executed twice

I have a $ (".btn-buy") .click () function that, when I click it, it runs twice. I can not solve the problem. I've researched the whole code and it has no duplicity. What can it be? Function: $(".btn-comprar").click(function () {...
asked by 18.06.2016 / 23:58
1
answer

How to highlight a menu item by clicking Back or Next

This is possible, I know I'm on the way, but before I decide to see with the community what can be done in this case, and then take the right direction. Code function Selecionado(tag){ var item = document.getElementById('menu'); v...
asked by 17.06.2016 / 08:50
1
answer

Problem with mask on form

I'm using the Masked Input Digitalbrush plugin to format my phone field in the form, so I tried this did not work, can anyone help me? <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></s...
asked by 16.06.2016 / 21:23
1
answer

How to change the value of the variable in Factory?

Inside Factory has a variable countF with value 1: Factory app.factory('testFactory', function(){ var countF = 1; return { getCount : function () { return countF; }, incrementCount:functio...
asked by 20.10.2015 / 18:51
2
answers

Select options line break that contains a very large value

Is it possible to break the line of a very option ? ex: <select> <option>texto muito extensp<br/>restante do texto</option> </select>     
asked by 20.10.2015 / 21:21
1
answer

Fix footer when user scrolls to element

I'm doing a landing page that has a footer between sections, and when the user scrolls to that footer it should be fixed at the bottom. I tried to use scrollToFixed but it behaves like a header, fixed to the top. Can you change this plugin...
asked by 05.10.2015 / 15:27
1
answer

Bring the return of a function to a variable of another function

I would like to see if there is any way to do this: function trazerNumero(){ return 7; } function mostrarNumero(){ numero = trazerNumero(); alert(numero); } $(function(){ mostrarNumero() }) I know you're going to say tha...
asked by 10.10.2015 / 06:28
1
answer

Link select does not work?

Hello everyone, good afternoon! I have the following code, which I need to form a link at the end, and display the page filtered for the client, but the link always falls in the first ID, which in this case is: Agrale. My question is: How...
asked by 05.10.2015 / 18:30
1
answer

How to make a transition button similar to Google Translate for a mathematical operation

I'm creating a small calculator that converts Kilograms to Pounds and Pounds in Kilograms . My goal is to insert a value into a first input and display the result in a second input that follows. For example: <input...
asked by 30.10.2015 / 02:51
3
answers

Problem with hover event in Firefox

The next code is to use the hover event in the first image and change the second class. But after testing, it did not work on the Firefox browser, running only on Chrome, Safari and Opera browsers. Here is an example of the code: HTML...
asked by 27.10.2015 / 10:59