Html:
<div id="printDiv" class="table-responsive">
@Html.Raw(Model.Content)
</div>
<button type="button" onclick="Print()">Print</button>
Javascript:
function Print() {
alert("working");
$("#printDiv").printThis();
}
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.
Uncaught TypeError: undefined is not a function
I do not have any idea Where i miss exactly ?
Any help will be appreciated. Thanks.