0
Good morning,
I have a table that displays the budgets (coming from the bank) within a while loop...
For each budget there is the button to view more details, in which opens a modal
And in this modal, the values of each product and
a function jquery performs the calculation with the total value and displays.
- But the problem is that it performs this calculation, throughout the table.
Only in the first element of the table, it works perfectly!
But already in the other rows of the table, simply does not load the sum, nor shows anything in the console,
The modal opens in all, with the correct information, only the summation function that...
Does anyone have any idea how to perform this?
(I’ve had the same problem with the modal of editing product, but I ended up showing on another page, because I can’t find anything about and I couldn’t develop anything
I tried to open the modal with jquery passing with the modal id, but it also doesn’t work...)
You can put the code you have?
– Sergio
The problem may be in the construction of the function! Maybe used as "function ignition key" an ID instead of CLASS. What would prevent! That’s just an observation! But for the best answer, just doing what Sergio said! Put your code here!
– ivan veloso
put the html and javascript code please
– Karl Zillner