Back to Tutorial Paste Your Code here! <!DOCTYPE html> <html> <head> <meta charset=utf-8 /> <title>Division of Two Numbers Using JavaScript Or Jquery</title> <style> body {margin: 30px;} </style> </head> <body> <h1>Division of Two Numbers Using JavaScript Or Jquery</h1> <form> 1st Number : <input type="text" id="firstNumber" /><br> 2nd Number: <input type="text" id="secondNumber" /><br> <input type="button" onClick="divide()" Value="Divide" /> </form> <b>The Result is : <br> <span id="answer"></span> </b> <script> function divide() { number1 = document.getElementById("firstNumber").value; number2 = document.getElementById("secondNumber").value; document.getElementById("answer").innerHTML = number1 / number2; } </script> </body> </html> Output