I want to print the content of my page. But that contain a popup. I need to display the pop up window content in my main page contain a button name Details. When I click the button a pop up will show.
When I click my print button.Only show the main content. The particular field for the pop up displaying window is blank (Details button)
I'm using window.print();
print button=> 'onclick="printpage()"'
function
function printpage()
{
$('#hiddendiv').html($('#view_popup_descriptive_index').html());
$('#hiddendiv').show();
window.print();
$('#hiddendiv').hide();
}
Any method to display the popup content.