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"...
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?
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...
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...
$(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'...
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...
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...
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...
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...