<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>toggle</title>
<style type="text/css">
-sharpdiv1 {
font-size: 9pt;
background-color: -sharp9FF;
height: 300px;
width: 400px;
border: 1px solid -sharp000;
}
</style>
<script type="text/javascript" src="jQuery/jquery-1.10.2.js"></script>
<script type="text/javascript">
$(document).ready(function (e) {
//
$("-sharpdiv1").toggle(
//1
function () {
$(this).css("background-color", "green");
},
//2
function () {
$(this).css("background-color", "red");
},
//3
function () {
$(this).css("background-color", "yellow");
}
);
});
</script>
</head>
<body>
<div id="div1"></div>
</body>
</html>
what is the cause of clicking div without discoloration