I tried differents solutions found here but nothing works. What I need is to set the fontawesome f14a to a field what's wrong ?
document.getElementById('property_charges').setAttribute('class', 'fontawesome-placeholder');
document.getElementById('property_charges').placeholder = '&#f14a';
and the css:
.fontawesome-placeholder {
//padding:10px;
//font-family: FontAwesome;
//z-index: 9999;
//z-index: 1;
font: normal normal normal 14px/1 FontAwesome;
font-size: inherit;
text-rendering: auto;
}
the suggested solution on the "duplicate" doesn't work + I don't want Jquery on my project