0

Html

How can I do a dynamic form submission with validation in html.

29th Jul 2025, 12:42 AM
Emmanuel
Emmanuel - avatar
3 Respuestas
+ 1
You would need javascript to do anything dynamically
29th Jul 2025, 3:47 AM
Zvi
Zvi - avatar
0
Well, in html you can do this: <script> let name = " " function insertFunctionName(){ name = prompt("Enter Name: ") document.getElementById("name").textContent = "Name: " + name } </script> <button onclick="insertFunctionName()>Click To Enter Name</button> <p id="name">Name: </p>
29th Jul 2025, 7:34 PM
Ashton Hively
Ashton Hively - avatar
0
Ashton Hively the code you provided doesn’t have any form validation Form validation is more complex then what you wrote. Personally, I learned about it in my react course but the question was how to do it with html
29th Jul 2025, 7:40 PM
Zvi
Zvi - avatar