1
I have a form where several user information are registered, including phone numbers and, after registering, you can view the registration by opening a form like the previous one with disable fields equal to fields filled at the time of registration
I would like to turn this number into a link so that the user can call the form number if he is on a mobile device and I thought I would just put a href
, but as I’m taking this information from the bank and throwing it into a text box, I don’t know how to turn into a link.
<div class="form-group col-md-6">
<label for="telefone">Telefone:*</label>
<div class="input-group phone">
<span class="input-group-addon"><i class="glyphicon glyphicon-earphone"></i></span><input required type="phone" class="form-control" id="telefone" name="telefone" placeholder="Digite o seu telefone:" value="<?=$row['telefone'];?>" disabled>
</div>
</div>
I went to try href anyway and it stayed like this:
Can someone give me an idea of how to do this?
You can even link one
input
who isdisabled
. However the click event will not have effect, precisely because the field isdisabled
. I think to solve this Javascript goes well.– Leandro Lima
Probably it would be the case to exchange the input for a simple <a>, and stylize as if it were a field, or even put the <a> in the phone icon instead of the text. It depends on the ultimate goal. If it is really an anchor, the actual <input> would not even be the correct element.
– Bacco