Source Code:
Result:
First name:
Last name:
Trigger submit event
Edit the code above and click "Submit Code" to see the result.
W3Schools.com
- Try it yourself