# Changing " \* " color inside input text

**URL:** <https://forum.kirupa.com/t/changing-color-inside-input-text/323478>\
**Category:** web dev\
**Created:** [July 2, 2011, 11:12pm UTC](https://forum.kirupa.com/t/changing-color-inside-input-text/323478 "2011-07-02T23:12:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RubenDoliveira](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/rubendoliveira/32/3905_2.png) [@RubenDoliveira](https://forum.kirupa.com/u/RubenDoliveira)\
**Post date:** [July 2, 2011, 11:12pm UTC](https://forum.kirupa.com/t/changing-color-inside-input-text/323478/1 "2011-07-02T23:12:10Z")

</div>

Hi everyone,

I have a form where I have something like the code below. However, I want to change just the " \* " color to red. Is that possible?

```auto
<input type="text" value="Name *" name="name" onFocus="if((this.value=='Name *')){this.value='';}" onBlur="if((this.value=='')){this.value='Name *';}" />
<input type="submit" value="" class="btn" />

```

Thanks in advance.
