I have a form where the last name field is initially disabled. How can I make it so that the last name field becomes enabled only when the first name is inputted?
<form>
<label for="fname">First name:</label><br>
<input type="text" id="fname" name="fname"><br>
<label for="lname">Last name:</label><br>
<input type="text" id="lname" name="lname" disabled>
</form>