javascript - Uncaught Error: Syntax error, unrecognized expression -
getting above error when running jquery function.
i whole html document passed me finding wrong bit hard , not 100% sure might causing it. changing html content within location when button clicked.
(loading more articles , removing rest)
function attachmorearticlesaction() { $('.more-posts div a').click(function(e) { e.preventdefault(); e.stoppropagation(); var url = $(this).attr('href'); $.get(url, function(html){ var body = $(html).find('.member').html(); $('.member').append(body); attachmorearticlesaction(); }); return false; }); }
thats function using. tell me why getting error.
thanks heaps.
remove line feeds
$(html.replace(/\n/g,""))...
Comments
Post a Comment