Questions tagged as 'jquery'

3
answers

jQuery - How to filter a JSON file from an external link?

I have a headache that is as follows: I need to do a filter by names of the following JSON (summarized) ... [ { "index": 0, "age": 25, "eyeColor": "green", "name": "Peck Murphy", "gender": "male", "company"...
asked by 28.02.2017 / 14:01
1
answer

Start with hidden div and show with button

Based on the answer below, I created the button that displays and hides div , but what I would like is that div started already hidden and had a button to display it. How could I do it? How to hide / show an HTML div?     
asked by 21.03.2017 / 23:02
1
answer

Events of jQuery Vs. arrow functions?

When you run the following code: $("button").on("click", function(){ console.log("Meu valor é: " + $(this).val()); }); <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script><buttonv...
asked by 27.03.2018 / 03:01
1
answer

Get index of a div with equal classes using mouseover () Jquery

I have several divs with the same class and need a function that, when I hover the mouse in any of them, with mouseover() take the index of it     
asked by 16.01.2017 / 17:32
2
answers

Make calculations between Inputs

I'm using a plugin that when you click the + button it multiplies the value. It works perfectly but the calculation is only done within <span id="price" class="amount"></span> and brings Total within <span id="total...
asked by 17.01.2017 / 13:10
2
answers

How to add Jquery to a wordpress page?

$(document).ready(function(){ $('.data-encerramento').each(function (){ var $this = $(this); var timestamp = $this.html(); var a = new Date( timestamp * 1000); var months = ['Jan','Fev','Mar','Abr','Mai','Jun'...
asked by 19.01.2017 / 17:39
3
answers

Store URL snippet - JavaScript

I'm capturing a certain URL value through JavaScript, but I'm having difficulty at any given time. Follow the steps below. var url = window.location.href; var page = url.split('/'); var page = page[page.length-1]; var arrayIt...
asked by 02.06.2017 / 21:22
3
answers

Several different carousel with owlCarousel

On my page I need 3 carousel: One for the banner , another for ruler and one more for evaluations. All will be with images and it would need that each one had its parameter, however with the OwlCarousel I could not do it, since when I make t...
asked by 03.06.2017 / 02:23
2
answers

apply event to an input with jQuery

Well, I need to apply the $(".margem").keyup(); event only to the input that contains a value greater than 0. Notice that by changing the cost value the system applies the $(".margem").keyup(); event by updating the input val...
asked by 18.04.2017 / 13:54
2
answers

When uploading, the filename turns the title

Colleagues. Is it possible for the user to upload a file, the file name to turn the page title? For example: The user will fill out a form where the first field is the file upload and the second field is an input text. When he selects the...
asked by 23.01.2017 / 17:17