html - how do i add permanent place holder inside input filed -


i need add font-icon inside input field used method

 <input type="text" name="your name" placeholder="&#xe00b; name" style="font-family:flaticon" class="restrict"> 

as see placeholder="&#xe00b; name" &#xe00b; display font-icon problem when user types text place holder disapper need font icon placed permanent inside input field <lable>

can me

you can't. expect like? placeholder disappears by design.

if want to prefix icon in front of input field, put them in container, give container needed style , put there icon , input-tag. that's way, how bootstrap problem solves.

example of bootstrap.

shortened example:

<div class="input-group">   <div class="input-group-addon">$</div>   <input type="text" class="form-control" id="exampleinputamount" placeholder="amount"> </div> 

of course, need css.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -