Questions tagged as 'jquery'

1
answer

How to enumerate page divs with jquery?

I would like to list all divs with spans of id="position" to simulate a rating. Ex: <div id="conteudo"> <div id="time"><span id="posicao">1.</span> Nome1</div> <div id="time"><span id="posicao"...
asked by 10.05.2015 / 02:45
2
answers

Put Json value in the variable

What am I doing wrong? var GETEstado = $(this).val(json[0].GETEstado); alert (GETEstado); Alert is displaying    [object Object] My complete code: $(document).ready(function () { $(".transportadora").click(function () {...
asked by 13.05.2015 / 14:37
3
answers

getJSON does not work

It does not return the value of success, but in error it says that everything is okay $.getJSON( "en-us.json", function( json ) { console.log( "SUCESS"); }).fail(function(m) { console.log(m); }); Image:     
asked by 09.04.2015 / 21:08
3
answers

Discover the highest-valued endpoint ID

I have an html structure like this: <div id="container1"> <p>Texto</p> </div> <div id="container2"> <p>Texto</p> </div> N vezes este bloco <div id="containerN"> <p>Texto&l...
asked by 01.04.2015 / 20:20
2
answers

Validating Form with JQUERY Validation + Masks

I'm developing a html form validation plugin for CPF, ZIP, DATA, PHONE. I was able to find one that adds a method to CPF in Jquery Validation, but I'm having trouble editing the code and making it work for the other fields: Can you give me...
asked by 09.04.2015 / 23:11
2
answers

Select input text for its value

I would like to select an input type text field that contains the word "hi" in it. Assuming my input is this: <input type='text' id='texto' /> I saw that it is possible through: $("#texto[value='oi']") But I saw that it only w...
asked by 06.04.2015 / 15:45
1
answer

Keyboard event does not work Jquery

I wonder why this event does not work with some keys. The key I want is seta para baixo (40) , but it does not work. The Enter (13) and letras e números keys work normally. I've removed all the Jquery code, and nothing. $('...
asked by 08.04.2016 / 12:52
1
answer

JSON return in an array in LOOP

I need to store the return of JSON to an array, that is: $.ajax({ type: "POST", dataType: "json", url: "/engine/listarPublicacoes.php",...
asked by 28.11.2014 / 12:35
2
answers

How to use the JSON response?

After a lot of trying I got to this JQUERY AJAX result, but I still can not use the JSON data, it does not work, how should I do it? Help! Thank you The JSON response is at the end jQuery(document).ready(function() { jQuery('#add...
asked by 06.12.2014 / 19:59
3
answers

Loading on ajax

How do I add a loading, to my ajax? This loading would begin when ajax was started and finished when it returned the result. my code: $.ajax({ url: url + "login/ajaxLogin", type: "POST", data: $('#login_form').serialize(), succ...
asked by 20.07.2015 / 21:00