Grow your CSS skills. Land your dream job.

simple jquery append is not working

  • # August 23, 2012 at 11:20 am

    I want to append this :

    CLICK HERE

    This is how:

    ('.portfolio-fs-viewport').append('CLICK HERE');

    And i get this error in console:
    SyntaxError: Unexpected token <

    # August 23, 2012 at 2:11 pm

    The only thing that comes to mind is that you aren’t starting with a ‘$’.

    $('.portfolio-fs-viewport').append('CLICK HERE');

    If that doesn’t work then there is a problem somewhere else in your script.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".