Bug Tracker

Ticket #4737: toggle.html

File toggle.html, 571 bytes (added by nbr, 11 years ago)
Line 
1<?xml version="1.0" encoding="iso-8859-1"?>
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4<head>
5<title>toggle test</title>
6<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
7</head>
8<body>
9
10<p>The second click hides both spans on IE8.</p>
11
12<a href="#" onclick="$('span').toggle()">Toggle:</a>
13<span>foo</span>
14<span style="display: none">bar</span>
15
16</body>
17</html>