Questions tagged as 'jquery'

2
answers

Enter key do not give submit

How to make the enter key not give submit on a form? Example: in an input pressing enter nothing happens. Today, if you press enter , the browser gives submit , and you clicked the submit button.     
asked by 14.12.2015 / 20:24
2
answers

Are libraries downloaded multiple times?

I have an application that uses 3 libraries (Bootstrap, jQuery, jQueryUI) on 10 different pages. Do browsers cache libraries?     
asked by 06.01.2015 / 17:57
1
answer

Map of Brazil - what is the best way to do it?

I have the following map: When the client hovers over a state, it has to change color. I thought of making several divs, to mount the map. Only this will generate a problem, as the divs are square, you will have to move the mouse right in...
asked by 12.03.2015 / 14:46
4
answers

Generate random numbers that result in a fixed sum

I need to generate random values for the inputs text of my table (remembering that it can have N rows), my code today can generate the numbers but I need the number generated to be at most X so that it does not exceed the value of the column Max...
asked by 24.02.2014 / 13:58
2
answers

How do I get an error alert generated by the Google Maps API?

If for some reason an error occurs and Google disables access to the maps API, an alert of this genre will appear to the visitor:    Google has disabled use of the Maps API for this application. The provided key is not valid Google API Key, o...
asked by 25.12.2013 / 13:56
4
answers

How to jump to the next field using jQuery?

How to move focus to the next field of a table using jQuery? I have a table with the Id , Name and Price fields, the price column is a text input. How to implement a feature for when the user presses the Enter key to jump to the next l...
asked by 20.11.2014 / 15:04
6
answers

Open Multiple Bootstrap Modes

According to the bootstrap documentation: Modal    Multiple modals are not supported and require additional code. I'm trying to open several modals inside others, these modals are called external files with data-remote and I'm ha...
asked by 17.08.2015 / 13:13
2
answers

Why does jQuery fadeIn not work if element has zero opacity?

I have an element with zero opacity defined via JavaScript. In practice, this is equivalent to: <div style="opacity: 0"></div> My intention is to use jQuery to make a fade-in effect on the element. I've tried the following:...
asked by 17.01.2014 / 20:10
2
answers

How can I get the results of the lotteries?

I looked for lottery APIs to get the results of the contests, unfortunately I could not find any. The answer from @fpg1503 can only read the result of the current game, I wonder if it is possible to get the results of the previous game...
asked by 20.01.2015 / 16:02
6
answers

How to remove a "href" from a tag with JQuery / JavaScript?

I have a <a> tag with hyperlink properly set. However, I would like to remove it when firing from an event. The same tag has an ID set properly, also (unique, valid, and related). I would like to know if there is a function to re...
asked by 05.02.2014 / 19:57