I have a form with some text areas that allow a scroll bar when the text exceeds the text box. The user would like to be able to print the screen, and this text is not visib
This seems to work for applying to all elements that have overflowing content:
$("textarea").each(function () { var Contents = $(this).val(); if ($(this)[0].scrollHeight > $(this).height()) { $(this).after("" + Contents + ""); $(this).addClass("no-print"); } });