title: Javascript print div content in asp.net mvc
body: <p><strong>Html:</strong>   </p>
  
  <pre><code> &lt;div id="printDiv" class="table-responsive"&gt;
  
          @Html.Raw(Model.Content)
  
      &lt;/div&gt;
  
  &lt;button type="button" onclick="Print()"&gt;Print&lt;/button&gt;
  </code></pre>
  
  <p><strong>Javascript:</strong></p>
  
  <pre><code>function Print() {
          alert("working");
          $("#printDiv").printThis();
      }
  </code></pre>
  
  <p>When i click to Print button , i want to print div content.However if i click to button, i get below exception for javascript code.</p>
  
  <pre><code>Uncaught TypeError: undefined is not a function 
  </code></pre>
  
  <p>I do not have any idea Where i miss exactly ?</p>
  
  <p>Any help will be appreciated.
  Thanks.</p>