Title: Placeholders for inputs
Last modified: August 22, 2016

---

# Placeholders for inputs

 *  Resolved [Goury](https://wordpress.org/support/users/goury/)
 * (@goury)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/placeholders-for-inputs/)
 * Are you mad?
    WTF are you wrote `onfocus="if(this.value=='<?php echo esc_js($
   options['txtfield']); ?>') this.value='';" onblur="if(this.value=='') this.value
   ='<?php echo esc_js($email); ?>';"` ? Remove all this shit and just use html 
   parameter `placeholder`
 * [https://wordpress.org/plugins/mailpress/](https://wordpress.org/plugins/mailpress/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [arena](https://wordpress.org/support/users/arena/)
 * (@arena)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/placeholders-for-inputs/#post-5208790)
 * what is the point ?
 *  Thread Starter [Goury](https://wordpress.org/support/users/goury/)
 * (@goury)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/placeholders-for-inputs/#post-5208791)
 * 1. There is a lot more events that should affect placeholder than just click 
   and blur
    2. Every browser have different placeholder behavior and you should
   not interfere 3. This solution is freakin buggy by design 4. Dust do not!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Placeholders for inputs’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/mailpress_f0e2c4.svg)
 * [MailPress](https://wordpress.org/plugins/mailpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mailpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mailpress/)
 * [Active Topics](https://wordpress.org/support/plugin/mailpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mailpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mailpress/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Goury](https://wordpress.org/support/users/goury/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/placeholders-for-inputs/#post-5208791)
 * Status: resolved