SyntaxError: missing } after property list, for load more posts

I have been following toutorials on youtube for ajax infinite scroll for wordpress. The youtube videos are Part 31 – WordPress Theme Development – Ajax Infinite Scroll – PART 1 thought to part 5. I have been coding as I go along with the videos. I have had an errow pop up in my console and I cant see whats wrong with my code.

Any help is appreciated.

here is my JQuery code

jQuery(document).ready( function($){

 /* Ajax functions */
     $(documet).on('click','.nude-load-more', function(){

         var page = $(this).data('page');
         var ajaxurl = $(this).data('url');

        $.ajax({

            url : ajaxurl,
            type : 'post',
            data : {
                page : page, 
                action : 'nude_load_more'
            },
            error : function( response ){
                console.log(response);
            },
            success : function( response ){

                $('.nude-posts-container').append( response );

            }
        });
    });

Read more here: SyntaxError: missing } after property list, for load more posts

Leave a Reply

Your email address will not be published. Required fields are marked *