Side navigation
Ticket #4737: toggle.html
File toggle.html, 0.6 KB (added by nbr, June 08, 2009 03:43PM UTC)
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>toggle test</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
</head>
<body>
<p>The second click hides both spans on IE8.</p>
<a href="#" onclick="$('span').toggle()">Toggle:</a>
<span>foo</span>
<span style="display: none">bar</span>
</body>
</html>
Download in other formats:
Original Format
File toggle.html, 0.6 KB (added by nbr, June 08, 2009 03:43PM UTC)
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>toggle test</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
</head>
<body>
<p>The second click hides both spans on IE8.</p>
<a href="#" onclick="$('span').toggle()">Toggle:</a>
<span>foo</span>
<span style="display: none">bar</span>
</body>
</html>