Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-11-2012, 01:57 PM   PM User | #1
coolumanga
Regular Coder

 
Join Date: Sep 2010
Posts: 106
Thanks: 6
Thanked 0 Times in 0 Posts
coolumanga is an unknown quantity at this point
while loop text boxes sum

hi

i have while loop with php

Itemcode , Price

inhear it will have 4 or 5 text boxes with the value

then i need to write a java script to get the sum of this when ever change the value of the text box value

how do i write.. plzz help me to solve this
coolumanga is offline   Reply With Quote
Old 09-11-2012, 02:13 PM   PM User | #2
WolfShade
Regular Coder

 
Join Date: Apr 2012
Location: St. Louis, MO, USA
Posts: 952
Thanks: 7
Thanked 98 Times in 98 Posts
WolfShade is an unknown quantity at this point
If the textboxes are in the PHP loop, give each an onblur() event to call a function that will get the number of textboxes, loop through them all grabbing the value and adding it to a total.
__________________
^_^

If anyone knows of a website that can offer ColdFusion help that isn't controlled by neurotic, pedantic jerks* (stackoverflow.com), please PM me with a link.
*
The neurotic, pedantic jerks are not the owners; just the people who are in control of the "popularity contest".
WolfShade is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:52 AM.


Advertisement
Log in to turn off these ads.