I'm wanting to input a phone number into a form element, and generate a clickable TEL: link.
When a user inputs a number, it should display a clickable link with that number in the paragraph below.
Example, if you enter 800-888-8888 it would generate html code: <a href="tel:800-888-8888">800-888-8888</a>
<form>
<label>Phone Number</label><br>
<input type="text" id="phone" >
</form>
<p id="telLink">This text will be replaced by the link</p>
<form>if all you need is to plain-generate a HTML output - which on itself seems like half of your task.