Questions tagged as 'jquery'

3
answers

How to capture the id of an html input with JS

What I want to do is the following: I have an input: <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <input type="text" id="5" name=""> <input type="button" onclick="x();"&g...
asked by 05.12.2018 / 20:39
2
answers

Add values in columns

I am trying to add the values of each column and add it in the last row, but I do not see that the content is updated. I build the table in the following way: echo "<tr>"; echo"<td data-field='count'></td>"; echo"&...
asked by 26.11.2018 / 23:17
2
answers

Error calling a view with chart.js error Failed to create chart: can not acquire context from the given item

Hello, I need to call mendiante load of jquery a view in Template.php but in the view there is a canvas that contains a graph but the graph shows the following error? '    Failed to create chart: can not acquire context from the given item...
asked by 02.10.2018 / 18:02
2
answers

Check input with 2 selectors

I need your help. I have the following code: $("input[numero='"+$("#jugada").val()+"']").each(function() { var monto = $(this).attr("monto"); jugado = parseInt(jugado) + parseInt(monto); }) I want to know how to do so in: $("i...
asked by 02.11.2018 / 14:42
2
answers

how to search in php table with jquery

Good, I'm trying to perform a search on a php table. This is the code with which I show my table: <div class="form-group"> <label for="search">Buscar:</label> <div class="input-group col-sm...
asked by 21.06.2016 / 18:46
2
answers

Delete a record showing confirmation

What kind of friends do I have this function in jQuery that deletes a record from a dataTable, what I need is that a confirmation be shown when I click on the delete button in the table, so that it appears if you really want to delete it and ano...
asked by 06.09.2018 / 02:47
1
answer

SyntaxError: JSON.parse in $ (document) .ready ();

this error had already been given to me before and it was corrected, in this case now if I select an element of a select I must make a $ _POST so that it loads me what is related to that select that in this case would be a sub category the code...
asked by 30.08.2018 / 11:06
3
answers

variable is not defined in JS

I have a dynamic input that I draw with for (var j = 0; j < valorCantidad; j++) { contador = contador + 1; jQuery('#tblTabla1 tr:last').after('<tr>' + '<td align="center" class="valorId">' + contador + '</td&g...
asked by 07.07.2016 / 00:33
1
answer

Problem showing values in an alert with variable in PHP

What I want is to show the content of my variable $serie alert(<?php echo $serie; ?>); What happens is that when the value of $serie = '003' if my alert works but if the value is 'FF01' no longer resolves it, appa...
asked by 05.09.2018 / 21:03
1
answer

Print a DIV keeping the CSS

I try to print a "div" in which there is a "proof of an order, I can not keep the CSS styles when I open the print window. This is my function: function printDiv(divVer) { var printContents = document.getElementById(divVer).innerHTM...
asked by 30.08.2018 / 10:32