Javascript is not working in expression engine, though on empty web page ( not expression engine) it is working properly.
Even the most simple ones like this are not working.
<head>
[removed][removed]
<style type=“text/css”>
<!—
.togblock {
display:none;
text-align:inherit
}
—>
</style>
[removed]
$(document).ready(function() {$(’#toglink0’).click(
function() {
if ( jQuery.browser.msie && parseInt(jQuery.browser.version) == 6) {
if ($(’#togblock1’).css(“display”)==“block”) {$(’#togblock0’).css(“display”, “none”);
} else {$(’#togblock0’).css(“display”, “block”);
}
} else {$(’#togblock0’).toggle(“slow”);
}
if ($(’#toglink0’).text()==‘open…’) {$(’#toglink0’).text(’...close’);
} else {$(’#toglink0’).text(‘open…’);
}
});
});
[removed]
</head>
<body>
void(0)” id=“toglink0”]open…
<div class=“togblock” id=“togblock0”>
Text inside!!!
</div></body>
What can be problem.