Questions tagged as 'jquery'

3
answers

Problem with click jquery

good I've been learning a bit of javascript and jquery for a week but I came to a problem that I could not find a solution for. What I try to do is to make a table from a table to edit its elements in this way: a table with several elements is s...
asked by 30.01.2017 / 15:22
4
answers

How to get the value of an input using closest in Jquery?

I have a table, in which I have hundreds of rows, and in which each row looks something like this (with different information for each row, of course) <tr> <input class="prodId" hidden value="<?php echo $product['id']; ?>"&g...
asked by 24.01.2018 / 18:02
1
answer

Avoid repeating the same functions JS / JQuery

How can I prevent the JS function from being repeated once per line? I mean, now there are three functions, but if there were 100 lines in the form I would like to have a single function for all and one line per line. $( function() {...
asked by 05.12.2017 / 22:45
2
answers

How can I know the value of an option within an input type select in HTML?

If I have this code. How can I know with JQuery or with DOM the value of, for example, the option of value 2? <select class="select" id="mySelect"> <option value="0">>HOLA</option> <option value="1">>...
asked by 08.11.2017 / 09:49
1
answer

switch case JavaScript: Variable Django is not recognized

I have a function that makes a switch case to select a specific time for a certain element. The problem is that the cases are generated based on the number of elements in the database using the ID as the case number. example: swicth(---meto...
asked by 23.09.2017 / 02:30
1
answer

Load a Pop Up only once to the User

I'm trying to make the Pop Up only go out once to the user and I try to do it by going to save a cookie but I'm not managing to save it, Help Please ... <!DOCTYPE html> <html lang="en"> <head> <meta charset="UT...
asked by 05.09.2017 / 23:39
1
answer

Carousel effect that divides images

Sorry that the title is not so specific but I want to make an image transition effect where the image is divided into parts and reconstructed similar to this page link How do I do those effects?     
asked by 23.10.2018 / 16:07
1
answer

jQuery | Ajax | xhr.statusText: 'OK' vs xhr.status: 200

In the jQuery ajax, I need a xhr.statusText:'OK' and throw a 'success' . I also throw a xhr.status:200 serves the same? Example: if (xhr.statusText == 'OK' || xhr.status == 200) { // Ok! It works! Let's d...
asked by 26.10.2018 / 13:54
3
answers

Can you pass data from MySQL to PHP and then pass it to another PHP? (or in Js)

I'm trying to make an online store, in my case what I want to do is show the products that are sold (I already have it) but I want the client to see more product information in another window with the images (as do all stores) in my case I s...
asked by 09.12.2017 / 02:18
1
answer

Autocomplete of jQuery does not suggest results

I am assigning the "autocomplete" function of jQuery to an input but it does not show the results. The data is collected from the BD through a PHP function using the post method. Going through the trace I verified that the data is received, c...
asked by 05.12.2016 / 16:01