Questions tagged as 'jquery'

2
answers

How to make a "back to top" button on a page? [duplicate]

How can I make a button return to the top on an html page? Jquery, javascript, what would be best?     
asked by 28.10.2016 / 15:45
4
answers

How to add class to the first img src="" of a set

Well, I have a set of <img src=“”> . I need, as soon as the page loads, add a class to the first of that set with Jquery , but remembering that they have a relative, href . ... <a href="#"> <img src=“”...
asked by 08.07.2015 / 22:41
4
answers

Show and hide div

I need to make a function that when just clicked on the div with the last class is visible and the rest is hidden. <a href="javascript:teste('minhaDiv');" class="expander">Link</a> <a href="javascript:teste('minhaDivo');" class=...
asked by 18.11.2016 / 18:32
5
answers

How to access the value of an array through the key?

I have the following array: var arr = [ {'David': '1'}, {'Camilla': '2'}, {'Sadat': '3'}, {'Vanuza': '4'}, {'Diego': '5'} ]; I wanted to access the "Camilla" value of the array I created. Ps: I want to access the value of the key...
asked by 31.03.2016 / 23:04
2
answers

navigate the child elements

Would you like to know how to loop through all child elements?     
asked by 16.01.2015 / 18:30
3
answers

Limit of characters in input

I want to build a jQuery that applies a limit of 255 characters within input . My idea and do something like this: $(".loading").on('input', function () { // aqui eu tenho que fazer o bloqueio });     
asked by 27.04.2017 / 18:18
4
answers

How to make a Popup that only writes information in the cookie or anything and displays only once on the homepage of the site

I have an adult entertainment website and I need to make an 18 year term to enter the site before ... It will be displayed a screen confirming the age and such of the person so she can click ok if it is bigger. But the jquery code does not run a...
asked by 04.07.2017 / 04:56
3
answers

Help to filter a JSON with jQuery?

I have this code that filters a JSON object: var filtrar = function (horamin, horamax) { var data = JSON.parse(JSON.stringify(json.aPesquisa)); let result = data.filter(item => { let voos = item.trecho[1].voo.filter(voo => {...
asked by 07.07.2017 / 19:47
2
answers

jQuery Codes for javascript

I am having problems, Javascript is very confusing for me, let's see that I have a function that accomplishes all this in jQuery $(".message-form-content").attr('style', ' '); // Esvazia o style da div $("#load-content").html(success); // Pree...
asked by 13.12.2014 / 17:40
2
answers

Is it possible to return a vector to a javascript

I am developing customizable graphics by users where they can select the options they want by sending the parameters to the php that searches the sql and returns me what I want. For graphics I'm using highcharts. But I'm having a hard time...
asked by 28.01.2015 / 14:15