title: How to display pdf file in html div
body: <p>I have a php file tha gives me the ossibility of displaying a pdf file from mysql now I want to display that pdf in a div in html file this is my function in javascript 
  var id;</p>
  
  <pre><code>function displayNotes() {
      //id=localStorage.getItem("userid");
      id = 160;
      var urlString = "id=" + id;
      $.ajax({
          url : "http://localhost/notePdf.php",
          type : "GET",
          cache : false,
          data : urlString,
          success : function(response) {
              console.log(response);
              document.getElementById("pdf").innerHTML = response;
  
          }
      });
  }
  </code></pre>
  
  <p>and this is my div in html </p>
  
  <pre><code>&lt;div class="content"&gt;
                          &lt;div id="form"&gt;
                              &lt;form action="" id="contactForm" method="post"&gt;
                                  &lt;span&gt;Email&lt;/span&gt;
                                  &lt;input type="text" name="email" class="email" placeholder="Enter your email" tabindex=2 /&gt;
                                  &lt;span&gt;Email&lt;/span&gt;
                                  &lt;input type="text" name="email" class="email" placeholder="Enter your email" tabindex=2 /&gt;
                                  &lt;span&gt;Message&lt;/span&gt;
                                  &lt;textarea class="message" tabindex=4 id="pdf"&gt;&lt;/textarea&gt;
                                  &lt;input type="submit" name="submit" value="Send e-mail" class="submit" tabindex=5&gt;
                              &lt;/form&gt;
                          &lt;/div&gt;
                          &lt;/div&gt;
  </code></pre>