0

Hi i'm coding my own sort of commentfield for my website, so im trying out using the append function in jquery, but netbeans is telling me this function call is missing quotes

$( "#comment" ).append( "<div class="userComment">
    <b>testName</b>
          <p>TestText</p>
      </div>" );
drakon135
  • 15
  • 3

1 Answers1

1

This should work fine

$( "#comment" ).append( '<div class="userComment"><b>testName</b><p>TestText</p></div>' );
Dev Man
  • 2,114
  • 3
  • 23
  • 38