I have a function that changing placeholder text. However, I cant add a code to this. For example, if I want to do a bold or just add a icon near the text - it doesn't works and just displaying the code instead of doing it. This is the code:
$('#email').attr('placeholder', '<i class="fa fa-times" aria-hidden="true"></i> Invaild email.')
It just displaying it like that: "<i class="fa fa-times" aria-hidden="true"></i> Invaild email"
.
I also tried to use css & html function - but It doesn't work. The only function that works to me to change the placeholder is the attr.