Return to Snippet

Revision: 2686
at April 23, 2007 12:17 by soxiam


Updated Code
INSIDE THE HEAD
......................................................................

<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(function()
{

$("#trigger").click(function(event) {
event.preventDefault();
$("#box").slideToggle();
});

$("#box a").click(function(event) {
event.preventDefault();
$("#box").slideUp();
});
});
</script>


HTML
......................................................................

<a href="#" id="trigger">TRIGGER</a>

<div id="box">
<a href="#" class="close">[x]</a>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren</p>
</div>

CSS
......................................................................
#box {
display: none;
}

Revision: 2685
at April 23, 2007 12:17 by soxiam


Updated Code
INSIDE THE HEAD
......................................................................

<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(function()
{

$("#trigger").click(function(event) {
event.preventDefault();
$("#box").slideToggle();
});

$("#box a").click(function(event) {
event.preventDefault();
$("#box").slideUp();
});
});
</script>


HTML
......................................................................

<a href="#" id="trigger">TRIGGER</a>

<div id="box">
<a href="#" class="close">[x]</a>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren</p>
</div>

Revision: 2684
at March 27, 2007 14:29 by soxiam


Updated Code
INSIDE THE HEAD
......................................................................

<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
(function()
{

("#trigger").click(function(event) {
event.preventDefault();
("#box").slideToggle();
});

("#box a").click(function(event) {
event.preventDefault();
("#box").slideUp();
});
});
</script>


HTML
......................................................................

<a href="#" id="trigger">TRIGGER</a>

<div id="box">
<a href="#" class="close">[x]</a>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren</p>
</div>

Revision: 2683
at March 27, 2007 09:58 by soxiam


Initial Code
<script type="text/javascript">
$(function()
{

	$("#tagshelp").click(function(event) {
		event.preventDefault();
		$("#tagsdesc").slideToggle();
	});
	
	$("#tagsdesc a").click(function(event) {
		event.preventDefault();
		$("#tagsdesc").slideUp();
	});
});

</script>
</head>

Initial URL

                                

Initial Description

                                

Initial Title
jquery collapse expand

Initial Tags
jquery

Initial Language
Other