I'm fairly new to JavaScript so I don't quite understand why I am getting a syntax error on 'else'. Any advise?
<script language="javascript">
$(document).ready(function() {
$('#toggleButton').click(function() {
if ($('#toggleSection').css("opacity") == 0); {
$('#toggleSection').fadeIn("slow");
}
else {
$('#toggleSection').fadeOut("slow");
}
return false;
});
});
</script>