Comments (3)
Could you please create a demonstration, perhaps on jsfiddle so that I can better understand your issue? Thanks!
from jquery.print.
I think I understand what he was saying. I ran into something similar.
I use jquery to populate a input field, and when I did this and used jquery.print() the value was not displaying when it print, but if I did ctrl + p and printed the page without jquery.print() the value displayed correctly.
I don't know the root cause, but I did figure out a work around.
Before I populated the value as such: $('#input_id').val('some value!');
Now, when I do this: $('#input_id').attr('value', 'some value!')' it prints fine.
Hope this helps,
from jquery.print.
Thanks, that makes perfect sense
The plugin works by adding your elements' HTML content (via jQuery.clone + jQuery.html) to an iframe/window and printing it, so dynamic form values are not updated.
The latest version (v1.3.0) addresses this by manually adding each input's values, as you suggested here.
Thanks!
from jquery.print.
Related Issues (20)
- fails jshint - var already defined
- append option does not work in latest Chrome browser. HOT 1
- Printing a div with overflow-y: scroll HOT 5
- Number of copies HOT 2
- Remove jquery dependency HOT 1
- How to make this plugin printing more than one page? HOT 7
- Please enable adding of multiple css files and larger screens. HOT 1
- online demo not work HOT 3
- Does not install with composer when in Drupal project HOT 1
- how to print multiple pages,orCombine multiple pages into one page? HOT 2
- Rename filename when save as pdf HOT 1
- Support for mobile devices HOT 4
- Add a footer with page number
- Wont Print in new version of chrome HOT 9
- Chrome latest version - css position fixed and bottom 0 issue on jquery.print()
- Suggestion for append and prepend HOT 2
- unable to reload page when print pop up is opened HOT 1
- $(...).print is not a function HOT 1
- Two instances of printer popup loading HOT 5
- user selected (select/options) value not showing up in the print HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jquery.print.