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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

IIS->Tomcat Redirect: multiple worker with default -