Please check the below sample code, this will display the whole content but will Print only the "Div" mentioned in the "attribute"<------Sample code starts--><html><body><div id="p...
Please try below code for your query, just add onclick="window.print()" to your submit button Make the "Print" button in form tag. <input type="button" value="Print" onclic...