Questions tagged as 'jquery'

1
answer

add dynamic input and select

hello friends I have a .js file which allows me to add dynamic rows and it works perfectly, but my problem arises that I am now using 1 input and 2 dynamic select that load values from the database, as I would have to do add those two select in...
asked by 22.06.2017 / 21:09
1
answer

Operation of values add class according to result

I have three select-option with different values. What I need is that by subtracting the values add a class to the row. This is my code (also available at JSFiddle ) $("tr").click(function() { id = $(this).attr("id");...
asked by 07.07.2017 / 02:25
1
answer

Duplicate records

I have a Ticket system, the code works 90% considering the requirements of the system, the problem is that sometimes when I make a record, it is duplicated. I have tried several things without success, it is clear that I can not have unique f...
asked by 31.08.2017 / 00:59
1
answer

Forum limit of votes by post PHP

Hi, I'm trying to make a forum in which registered users can write comments and assess, the problem is that a registered user can rate as many times as they want and I would like the user to rate 1 time per comment. The page is link The...
asked by 12.06.2017 / 17:18
1
answer

Jquery Ajax Response

This is my code controller = $("#src_controller").val(); source_id = '#' + $("#src_filter_tags").val(); $.ajax({ type: "GET", data:"id=" + $(this).data('tagId'), dataType: "json", url: "index.php?controller=" + controller + "...
asked by 25.03.2018 / 15:48
1
answer

Edit column table jQuery

<table id="tabla1"> <thead> <tr> <th>Fruta</th> <th>Cantidad</th> <th>Color</th><!-- necesito editar esta columna--> </tr> </thead> <tbod...
asked by 05.06.2017 / 22:30
2
answers

Go through each index of the indexed array, and from each index extract the preset user with JQuery

Good! It's my first year studying javascript, I have a task that I need to make a kind of order pages, to make things easier for us, the teacher asked us to add users directly to clients and officials (two types of users) in associative arrays a...
asked by 05.07.2017 / 15:21
1
answer

How do I use Masonry horizontally?

I have the following code .grid{ column-count: 2; column-gap: 1em; } .grid-item{ margin: 10px; background-color: #333; display: inline-block; margin: 0 0 1em; width: 100%; } .grid-item:nth-child...
asked by 03.07.2017 / 02:01
3
answers

Clone a table and clone text fields within it

I have a problem when cloning a complete table in JavaScript: pressing the button that allows me to clone the table deactivates me the buttons that allow me to clone text fields inside it; and vice versa: if I press the buttons inside the table...
asked by 03.07.2017 / 19:23
1
answer

update select field using ajax

I'm starting to use codeigniter, javascript with the jquery library and I have the following problem, I have a form and in the select field where I load the cities I send the data from my controller in json, from the sgt form. function L...
asked by 12.05.2017 / 21:16