0

I'm getting a syntax error saying there is an unexpected ")" -- just don't see it - anyone?

<script>
$(".signin_link_other").click(function() {
    $('#login_dropdown').clone().appendTo($(this)).toggle();
)};

$(".signup_link_other").click(function() {
    $('#signup_dropdown').clone().appendTo($(this)).toggle();
)};
</script>
3
  • 12
    Change both )}; to });. Commented Jul 24, 2013 at 18:22
  • 7
    You should use an editor that matches brackets, so you will see problems like this easily. Commented Jul 24, 2013 at 18:23
  • 2
    This question appears to be off-topic because it is about a typo. Commented Jul 24, 2013 at 18:27

2 Answers 2

6
$(".signin_link_other").click(function() {
    $('#login_dropdown').clone().appendTo($(this)).toggle();
)};

->

$(".signin_link_other").click(function() {
    $('#login_dropdown').clone().appendTo($(this)).toggle();
});

Change )}; to });

2nd one is similar.

Sign up to request clarification or add additional context in comments.

1 Comment

It will be helpful to describe what you changed.
3

Change your code to this:

<script>
$(".signin_link_other").click(function() {
$('#login_dropdown').clone().appendTo($(this)).toggle();
});

$(".signup_link_other").click(function() {
$('#signup_dropdown').clone().appendTo($(this)).toggle();
});
</script>

All you had to do was change all of the )}; to });

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.