코드:
결과보기 »
<!DOCTYPE html> <html lang="ko"> <head> <meta charset="UTF-8"> <title>HTML5 Form Elements</title> </head> <body> <h1>output 요소를 이용한 계산 결과 표현</h1> <form action="/examples/media/request.php" oninput="total.value=parseInt(value01.value)/parseInt(value02.value)"> <input type="number" id="value01" name="input01" value="20"> / ( 0 <input type="range" id="value02" name="input02" value="50" min="0" max="100"> 100 ) = <output name="total" for="value01 value02"></output><br><br> <input type="submit" value="전송"> </form> </body> </html>