sam_benne's Profile User Rating: -----

Reputation: 16 Tradesman
Group:
Author w/DIC++
Active Posts:
732 (0.31 per day)
Joined:
16-January 08
Profile Views:
11,716
Last Active:
User is offline May 18 2014 10:24 PM
Currently:
Offline

Previous Fields

Country:
GB
OS Preference:
Windows
Favorite Browser:
Chrome
Favorite Processor:
Intel
Favorite Gaming Platform:
PC
Your Car:
Who Cares
Dream Kudos:
425

Latest Visitors

Icon   sam_benne Is currently working on a few things one is my blog.

Posts I've Made

  1. In Topic: Multiple textbox, for loop, getting wrong result

    Posted 19 Nov 2012

    This will work.

    <script>
    	function calculate() {
    		
    		var total = 0;
    		
    		for (var i = 1; i <=10; i++) {
    			total += parseInt(document.getElementById('amount'+i).value, 10);
    		}
    		
    		document.getElementById('total').value = total;
    	}
    </script>
    
    
    

My Information

Member Title:
D.I.C Addict
Age:
23 years old
Birthday:
January 28, 1991
Gender:
Location:
UK
Interests:
Making websites and creating cool things with PHP.
Full Name:
Sam Bennett
Years Programming:
5
Programming Languages:
VB6, HTML, CSS, MySql, PHP, jQuery, Javascript Java and C#(XNA and Silverlight), ASP(.NET)

Contact Information

E-mail:
Click here to e-mail me
MSN:
MSN  sambenne@hotmail.co.uk
Website URL:
Website URL  http://www.sam-benne.co.uk
Skype:
Skype  sam.benoks
LinkedIn:
http://uk.linkedin.com/in/sambenne
Twitter:
sam_benne

Friends

Comments

sam_benne has no profile comments yet. Why not say hello?