L
L
leni_m2017-06-26 16:14:51
JavaScript
leni_m, 2017-06-26 16:14:51

How to print textarea tags?

On the site, the user can enter data into the teaxtarea and press the "print" button. onclick="print();"There is one problem with printing, the blocks become smaller in width, and the text does not fit completely in height.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Paladin_rrr, 2017-07-06
@Paladin_rrr

Do not print the fields as is, but make a hidden div and pass the text into it - and when printing, the form fields are invisible, and make the div visible - using CSS (see - media Print and media Screen)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question