Title: Help needed with javascript
Last modified: August 19, 2016

---

# Help needed with javascript

 *  [stfalx](https://wordpress.org/support/users/stfalx/)
 * (@stfalx)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/help-needed-with-javascript/)
 * I need some help with some java script. I will now describe the problem.
 * I’m currently developing my own theme. I arrived at the editing of comments.php
   al ids are the standard ones.
 * I would like to know how can i add a 3rd permanent state to the input / textarea
   fields. I only have a input field where i aded by CSS a background image that
   has written on it: NAME: this is for the people that would like to comment, where
   they should write the name. Now when i select the field to type in it i’ve made
   the css hide the background that has NAME: written on it, so the user can type
   without having to see the background. Now here is where my problem is. After 
   i typed something in that field, the background with NAME: written on it returns,
   setting itself behind the text just written in the input field, this is not very
   pleasent for the eye.
 * Does anybody have an ideea on how to set a 3rd state after somebody has written
   something in the field. i’d like that state to be with no background.

The topic ‘Help needed with javascript’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [stfalx](https://wordpress.org/support/users/stfalx/)
 * Last activity: [18 years, 3 months ago](https://wordpress.org/support/topic/help-needed-with-javascript/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
