Having an issue with printing a Bootstrap modal exactly as displayed? Check out this Print Problem
Despite trying various solutions, none have solved my problem. Therefore, I am exploring a new approach.
Does anyone know how to dynamically print new HTML code using JavaScript and jQuery?
Imagine having two screens: Screen 1 and Screen 2
Screen 1: the working web screen with the displayed HTML code
Screen 2: a hidden screen
When the "print" button is clicked, my jQuery script will generate new HTML code on Screen 2 and proceed to print it.