0
Html
How can I do a dynamic form submission with validation in html.
3 Respuestas
+ 1
You would need javascript to do anything dynamically
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>
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