Script File
jq.toggleActive.js ( view )
Available Options
focusBG
A string specifying the form element's background color when focused.
Default value is "#F5F5F5".
focusFG
A string specifying the form element's foreground (text) color when
focused. Default value is "#000".
blurBG
A string specifying the form element's background color when not
focused. Default value is "#FFF".
blurFG
A string specifying the form element's foreground (text) color when
not focused. Default value is "#666".
toggleVal
Boolean indicating whether to toggle the default value of the form
field as the field is cleared and loses focus. This is most useful
for fields that have a full or partial default value assigned to
them. Default value is false.
Basic Usage
$("ELEMENT").toggleActive();
$("ELEMENT").toggleActive({ options });
Minimum Browser Support
- Apple Safari 3
- Google Chrome 1
- Microsoft Internet Explorer 6
- Mozilla Firefox 3
- Opera 9