FadingText - Temporary scenes not fields Print

  • 0

In-class Shop. Support for temporary content fields, until the entry of another by the user (for example, the search box).

The parameters in the JS

Because the class is assigned to together with the Shop, all parameters must be set before the domready event or the latest features conditional Shop.fadingText.condition()

Parameters Shop.fadingText.options :

  • selector (string) - selector supported fields, by default, input.fadingtext

Action

The selected fields receive events onFocus and onBlur. The default value (specified in the HTML in value=””) is removed at the time of onFocus and rolled back in onBlur, If there are any new one. Form field receives onSubmit, that causes onFocus for all fields fadingText inside - and remove the default value=””, that should not be sent.


Was this answer helpful?

« Back