Posted by David Graham on 02/28/06 19:09
"Toby Inkster" <usenet200602@tobyinkster.co.uk> wrote in message
news:2vccd3-arl.ln1@ophelia.g5n.co.uk...
> 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
>
Thanks very much Toby
bye
david
[Back to original message]
|