Categorized under: Programming, jQuery

simple toggle hide/show jquery plugin

kshide
Kyle’s Show/Hide toggle plugin

When you click on a link, the unordered list will show, then retract after a second click

LICENSE:
New BSD Software License

USAGE:

<script>
        $(document).ready(function(){
            $('.tog').kshide();    
        });
</script>
 
 
<ul>
        <li>top</li>
        <li class="tog"><a href="#">stuff</a>
            <ul class="sub">
                <li>lol</li>
                <li>test</li>
            </ul>
        </li>
</ul>

Download it from github!

blog comments powered by Disqus
RSSSubscribe to my feed now.

About Me

The Kyle SmythKyle Smyth
Regina, SK. Canada

Software Engineering Student. Tournament paintballer. Web developer. Podcaster. Eve-online/Quake Live Addict.