Sum value checkbox js |
Hey goodmorning, maybe my question won't specified with 'Codeigniter' but i really need a help here, i get stuck.
PHP Code: <script type="text/javascript"> As you can see from my script above, when i check my checkbox, it'll sum the value. But i want to add "id" that i take from table then save it into other table. So i create this script, but my js not working. PHP Code: <div class="checkbox"> Is there any other method ?
I don't understand the question.... I lose it at "But i want to add "id" that i take from table then save it into other table." I am not sure what that means.
In your second code block, you post php code but say your javascript is not working. If the javascript is not working, post the actual output of that page from the document source, not the php you are using to create the page.
(11-30-2014, 09:47 AM)bclinton Wrote: I don't understand the question.... I lose it at "But i want to add "id" that i take from table then save it into other table." I am not sure what that means. I'm sorry, i'm not good in english. When you want to insert into table you will use the value from the checkbox right? now, from my first code i use my checkbox value for sum 'price' from my table and my second code i don't sum the 'price' because i want to save 'id (iddonasi from my table)'. How to join it together ? Ahh, if i good in english. I'll explain it clearly |
Welcome Guest, Not a member yet? Register Sign In |