找不到错误,错误显示意外令牌ILLEGAL

时间:2012-05-16 07:00:48

标签: jquery

找不到错误,我只想用click

更改可见性
<script type="text/javascript">
$(#register_link).click(function(){
     $(#signin).animate({visibility:hidden;},"slow");
});
</script>

2 个答案:

答案 0 :(得分:2)

使用引号:

$('#register_link').click(function() {
    $('#signin').animate({visibility:hidden;},"slow");
});

答案 1 :(得分:1)

您错过了'选择器的引号

$('#register_link').click(function()
{
  $('#signin').animate({visibility:hidden;},"slow");
});