Is it posible to make different text colors in placeholder: For example I wan't to make placeholder like:
<input id="place" name="place" type="text" placeholder="" class="form-control input-md" required="">
<script type="text/javascript">
var placeholder = "place for drilling <span>*</span>" ;
$('#place').attr('value', placeholder);
$('#place').focus(function () {
if ($(this).val() === placeholder) {
$(this).attr('value', '');
}
});
$('#place').blur(function () {
if ($(this).val() === '') {
$(this).attr('value', placeholder);
}
});
</script>
Why i put this star in * tags because I wan't to make text black color and star red to show that this field is required. But i didn't find a way to put html in placeholder and my version is not working. you can see it on img
So my complete question is: How to make different text color's in one placeholder??