I am trying to find a way to hide the label "phone number" when the input is in focus by simply clicking on it. I have attempted using CSS but I need a more effective solution. Please let me know if you can help.
<div class="form-row">
<div class="input-data">
<select class="phone-select">
<option>+91</option>
<option>+92</option>
</select>
<input class="phone-input" type="text">
<div class="underline"></div>
<div class="phone-label">
<label>Phone No.</label>
</div>
</div>
</div>