0

i am trying to append some html content to a div.

here is my jquery script

jQuery( "#navigation" ).append('<li><a class="nop" href="#"><i class="social fa fa-2x fa-facebook"></i></a></li>
    <li><a class="nop" href="#"><i class="social fa fa-2x fa-twitter"></i></a></li>
    <li><a class="nop" href="#"><i class="social fa fa-2x fa-google-plus"></i></a></li>');

but this not working. showing some error. please help me. Thanks

  • It's never good to just write _showing some error_. If you want to get an answer and won't get downvoted for a low quality question you should always provide **all** relevant information. – t3chb0t Dec 31 '14 at 11:11
  • possible duplicate of [SyntaxError: unterminated string literal strange error](http://stackoverflow.com/questions/14170153/syntaxerror-unterminated-string-literal-strange-error) – t3chb0t Dec 31 '14 at 11:13
  • 2
    See also this question [How do I break a string across more than one line of code in JavaScript?](http://stackoverflow.com/questions/508269/how-do-i-break-a-string-across-more-than-one-line-of-code-in-javascript) – t3chb0t Dec 31 '14 at 11:14