Torna al Thread

<html> <head> <title>Somam select</title> <script type="text/javascript"> function selectValue(caller) { document.getElementById("txtRisultato").value = parseInt(document.getElementById("select1").value) + parseInt(document.getElementById("select2").value); } </script> </head> <body> <select id="select1" OnChange="javascript: selectValue(this);"> <option value="0">0</option> <option value="1">1</option> <option value="2">2</option> </select> <select id="select2" OnChange="javascript: selectValue(this);"> <option value="0">0</option> <option value="1">1</option> <option value="2">2</option> </select> <input type="text" value="0" id="txtRisultato" /> </body> </html>
Copyright © dotNetHell.it 2002-2025
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5