Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>Ma page</title>
- <meta charset="UTF-8">
- <style>
- /* Intructions CSS ici*/
- </style>
- </head>
- <body>
- <form>
- <input id="num"type="text"name="Numéro du cours"value="717">
- <button id="envoyer"type="button">Soumettre</button>
- </form>
- <script>
- var btnSubmit = document.getElementById("envoyer")
- var inputNumCours = document.getElementById("num")
- btnSubmit.addEventListener("click", function (e) {
- var numCours = parseInt(inputNumCours.value);
- console.log(numCours);
- });
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment