How do I get placeholder text in firefox and other browsers that don't support the html5 tag option?

后端 未结 10 1490
借酒劲吻你
借酒劲吻你 2020-12-02 19:21

This works in Chrome and any other browser that supports placeholder text in HTML5



        
10条回答
  •  失恋的感觉
    2020-12-02 19:48

    The trick is to use javascript functions onBlur() and onFocus().

    Here is the code that worked for me:

    
    
    
    ok

    SUBSCRIPTION_HINT (i.e.: "your e-mail" ) and SUBSCRIPTION_LINK (i.e.: the value of the 'action' tag in your EN mailchimp embed code...) are PHP constants used for localization.

提交回复
热议问题