hi i'm delevoping a web site under JSP, and i put this code so a div element can hide and show using an anchor, the problem is that when i click the anchor the screen is moved suddenly up and the animation isn't showing.
Thak's for your help.
<script>
$(document).ready(function(){
$('#anchor').click(function(event) {
if($("#div").is (':visible')){
$("#div").slideUp()
}
else {
$("#div").show("slow");
}
})
});
</script>
this is how i call it..
<div id="div" style="display:none;">
JSP code...
</div>