Questions tagged as 'jquery'

2
answers

JQuery: sum of values of a column

I have a problem with JQuery, I do not understand why it adds up well sometimes and sometimes badly. My code to calculate is as follows: var sum=0; $('.subtotal').each(function() { sum += parseFloat($(this).text()); }); $('#r...
asked by 27.06.2018 / 21:16
0
answers

Gregar Campos en Automatico by clicking on voton [+] or deleting fields to click on button [-]

Hello everyone, I'm looking for a way to add or delete a line of fields. I have 8 fields and I want to see how to add an equal line by clicking on the add button. <form class="form-horizontal form-label-left" action="php/GuardarPerso...
asked by 27.06.2018 / 22:38
1
answer

add styles for PDF files that are downloaded by JQUERY DATATABLES

I have a problem generating a PDF file with the library Jquery Datatable , when generating the pdf I download by default the blue color in the header of the table, but my company handles the color red, I leave the code javascript wi...
asked by 04.05.2018 / 21:31
1
answer

How to make the functions of ajax independent since they are called by dynamic selects created by clone

I have a form with three input groups, the first ones are fixed, the second ones are dynamically generated by .clone and the third ones are fixed. The problem is the second group of inputs I have two select the first is filled by ajax query to s...
asked by 28.06.2018 / 23:18
2
answers

Ajax does not reach the controller in cakephp

Hello, I have the following codes: Routes Router::connect('/', array('controller' => 'pages', 'action' => 'home', 'home')); Router::connect('/post', array('controller' => 'Posts', 'action' => 'display', 'Posts/index')); Router::con...
asked by 28.04.2018 / 00:56
0
answers

Include information that is out of datatables in jquery buttons

When I export excel it works perfect for the table, but it does not help me if the file does not include information about who the file is addressed to, will there be any way to include the information that is outside the table? I am us...
asked by 27.04.2018 / 21:49
0
answers

how can I add the data of a variable to an array?

My may be a bit easy, but being new on this topic is a bit complicated. I have this code <pre> <em> $(document).ready(function() { var date = $.getJSON("prueba.php?providerid=157&startdate='2018-04-05'", function(re...
asked by 11.05.2018 / 18:10
3
answers

Add items in the DOM [closed]

Hi, I need to add a different class attribute for each label to a li but I do not know how to do it. You can help me would be with jquery     
asked by 14.05.2018 / 09:44
1
answer

how to create conditioned search syntax in select

It turns out that I want to do a search through ajax where I have three fields one is idpaciente another is cedula and the other is name. What I want to do is to search first by idpaciente if it does not find search by cedula and if it does n...
asked by 13.04.2018 / 14:21
1
answer

Write result of function in input text JavaScrip

I have this problem guys, I need that the result of a function that I am shooting with an event is written in a text type input, in this case the one that is after USD, I can do it in an elemnto <span> more not within <input&g...
asked by 09.05.2018 / 21:00