Valor 1
Valor 2
tenta isso:
alert(campo1 + campo2);
Valeu Tiburcio, veja qual foi a solution:
function calcula(){
var campo1 = document.getElementById(‘test1’);
var campo2 = document.getElementById(‘test2’);
alert(campo1.value- " " +campo2.value);
}
abs,
AS
Brother, tu tens algum exemplinho de utilização de div?
abs,
AS