Get full-name from inputs
Extend the JavaScript code below to interact with the displayed HTML elements.
This time we are looking for the full name. When the button is clicked, combine the names of the first two input fields. Insert the full name in the third input field.
Hint: Check if your code still works if you change the first or last name.
Confirm your code by clicking the button!
This time we are looking for the full name. When the button is clicked, combine the names of the first two input fields. Insert the full name in the third input field.
Hint: Check if your code still works if you change the first or last name.
Confirm your code by clicking the button!
Premium
View
<input type="text" id="firstName" placeholder="Max" value="Max"/> <input type="text" id="lastName" placeholder="Musterman" value="Musterman"/> <input type="text" id="fullName" placeholder="full name" readonly/> <button type="button" id="button">Verify Code</button> HTML
Javascript