Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript simple jquery append is not working

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #39482
    dynamyc
    Member

    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 <

    #108361
    TheDoc
    Member

    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)
  • The forum ‘JavaScript’ is closed to new topics and replies.