This code doesn't work:
- $(document).ready(function(){
$('#toggleme').toggle(
function() {
$('#outputdiv').text('You clicked the image once.');
},
function(){
$('#outputdiv').text('You clicked the image twice.');
},
function(){
$('#outputdiv').text('You clicked the image three times.');
});
});
</script>
</head>
<body>
<img src=”images/home.gif” id=”toggleme”>
<div id=”outputdiv”>This text will change.</div>
I don't know what it lacks, thanks for your help!