Posted by Toby Inkster on 02/28/06 01:01
David Graham wrote:
> function sum ()
> {
> //var A = document.getElementById('a');
> var A = parseInt(document.getElementById('a'));
> //var B = document.getElementById('b');
> var B = parseInt(document.getElementById('b'));
> //var C = document.getElementById('c');
> var C = parseInt(document.getElementById('c'));
> C.value = A.value + B.value;
> }
function sum ()
{
var A = parseInt(document.getElementById('a').value);
var B = parseInt(document.getElementById('b').value);
document.getElementById('c').value = A + B;
}
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Navigation:
[Reply to this message]
|