Questions tagged as 'jquery'

1
answer

Transform variable into array

I have a variable that calls all people names. var nome = "João Miguel Pedro"; How do I make it to become the following array: var nome1 = ["João","Miguel","Pedro"];     
asked by 14.08.2017 / 20:09
2
answers

What is the difference from ON to ONE in Jquery

I'm dealing with some common optimizations in my system and I found a situation that intrigued me, every time I double clicked on the table and called a function to bring the complementary data of the client it doubled the amount of requests to...
asked by 08.09.2015 / 15:50
3
answers

Why does 'getJson' not work? [closed]

My select-menu.json file looks like this: { value: "1", descricao: "1" }, { value: "2", descricao: "2" }, { value: "3", descricao: "3" }; And I'm trying to get it this way: $(document).ready(function(){ $.get...
asked by 28.08.2015 / 22:47
1
answer

Fade effect run in jQuery

Well, I'll try to explain the best, what I intend to do: I have a div with the border id, which actually serves as the border. I want to do a jQuery effect, run color-changing, from top to bottom, that is, it's red, then it gets orange, ye...
asked by 06.03.2017 / 20:22
3
answers

Hide the destination URL

In the jquery example the arguments are well identified; url and form parameters. $.ajax({ url: "test.html", }).done(function() { // ... }); I want to know if you have any way to hide the url in ajax or make it difficult to identify the...
asked by 20.08.2014 / 07:27
2
answers

How to remove backslashes (\) and quotation marks (") from a string?

I would like to prevent the use of these characters in a string. I think the most elegant way would be by regular expression, but I do not understand anything about how to put one together. A replace would also help.     
asked by 06.08.2014 / 15:08
3
answers

Add and remove class

I have a simple schema to go to class .ativo and remove it and add the class .block then search the #banner1 id and add the class .ativo and remove the class .block But it's not working, look there: $(".bo...
asked by 21.09.2014 / 04:47
2
answers

Put image in a bootstrap menu

How do I place an image in the right-hand corner of a menu bar with bootstrap. Below the code for my Layout (Master) <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width...
asked by 20.08.2014 / 20:15
2
answers

Count visible and active inputs in my form

Well, I know that Jquery Validation does something similar because it only blocks a required field, if it is active, see example (In that case, if you accept "Please agree to our policy" it activates the 3% under% and comboBox bec...
asked by 09.09.2014 / 15:13
2
answers

Only accept multiples of X in the input

I need my input to only accept multiples of an X value that will be set via the function parameter. How can I proceed?     
asked by 16.03.2015 / 16:26