Questions tagged as 'jquery'

1
answer

How to add two inputs that already have a preset value

function suma() { var add = 0; $('.cl').each(function() { if (!isNaN($(this).val())) { add += Number($(this).val()); } }); $('#sumAll').val(add); }; <script src="https:...
asked by 21.10.2018 / 07:31
1
answer

change name of a class within a method

var slideIndex = 0; showSlides(); var slides function showSlides() { var i; slides = document.getElementsByClassName("mySlides"); for (i = 0; i < slides.length; i++) { slides[i].style.display = "none"; } slideInde...
asked by 22.10.2018 / 02:36
2
answers

How to load a certain script depending on the width of the screen?

I have a website which is adapted for mobile but in certain points of interruption or break I need to execute certain Javascript. Example: I need that when the screen is greater than 992 px a'Click 'event is executed and if it is less than th...
asked by 14.08.2018 / 18:32
3
answers

How to change the data that comes loaded with a dropdownlist of asp.net mvc with JQuery?

How about everyone having a problem with a dropdownlist, I want to filter data by the following status: -Active -Rejected -Pendiente but the dropdownlist that I have loaded already makes the corresponding filtering is just that I load the val...
asked by 14.08.2018 / 19:17
1
answer

Modify Instance from another Instance in the same Database. Firebase

in this opportunity I have a small requirement that I have not been able to carry out. I have a database girl structured in this way; in AP a data will be loaded every day, which will always occupy the last positions obviously...
asked by 06.09.2018 / 22:01
2
answers

Set up correctly the JQuery datepicker

What happens is that I am implementing a calendar in my application, for that I use JQuery, but at the time of the settings is where the problem arises and is that it does not let me select the full date, only the year and later this is hidden a...
asked by 19.10.2018 / 15:46
1
answer

How to use a single form where your fields are in different tabs, jquery?

The design of tabs in html remains this way <div class="tabs-animated-wrap"> <div class="tabs"> <div id="tab1-2" class="tab active"> <div class="list login-form-box"> <form id=...
asked by 14.09.2018 / 09:01
1
answer

Valid if a value has already been entered, that does not allow to enter more, jquery?

Currently I generate a dynamic list with jquery, the dynamic list is formed by an arrangement of objects which remains this way: var lista_productos_elegir = $('.lista_productos_elegir'); valCarrito = response.data;...
asked by 14.09.2018 / 21:38
2
answers

pass several php arrays to javascript

the following php code that generates two arrays <?php //los datos salen de una tabla mysql $last_year_sales = [2589, 2589, 1478, 2587, 7852, 9632]; $current_year_sales = [1250, 1480, 1156, 3589, 7521, 9632]; //enviar...
asked by 04.08.2018 / 18:01
2
answers

Group elements of a JSON

I have the following JSON, which each record has a city, but the same city can be in many records at once. { "data": [ { "numero": "123", "nombre": "jorge", "ciudad": "Tokio" }, { "numero": "222", "n...
asked by 09.08.2018 / 18:13