Home > Javascripts > AW Javascript toggler

AW Javascript toggler

AW Javascript toggler

AW Javascript toggler with cookie is a simple and light weight, javascript which toggles the visibility of elements with cookie. So they remain visible or hidden by cookie on the return visit.


Download

  • Features
  • Demo
  • Documentation
  • Download

Features

  • Light weight (only kb).
  • Cross browser support.
  • Can include any no of toggling items.
  • Enabled with cookie.

Donate & Support with Paypal

If you find my products useful, then just donate and support my work. It will be an encouragement !

Usage

  • Include the javascript
    <script type="text/javascript" src="Path to awJavascriptToggler.js"></script>
  • Call the toggleToggle('ID of the element to be hidden') function by a button.
  • Call the function toggleInitiliaze('ID of the element to be hidden') externally by using the code
    <script type="text/javascript">toggleInitialize('ID of the element 1 to be hidden'); toggleInitialize('ID of the element 2 to be hidden'); toggleInitialize('ID of the element 3 to be hidden'); // and etc</script>
  • That’s all

Demo

Toggle |

Some content

Download

Click the link below to download AW Javascript toggler

Download
(AW Javascript toggler, 2.7 KiB, 64 hits)