简体   繁体   中英

I want to get print dialog box when press print button?

I want an to print the receipt of my purchase order. I had already created the button ie print in my application but i have no idea how can i implement this print dialog box issue.

here is my fiddle http://jsfiddle.net/#&togetherjs=Ba7arcBC0S

Can any one please help?

The code on your jsfiddle is correct. You may just need to select jQuery from the select box on the top left (that's currently showing No-Library)

Here it's working in jsbin: http://jsbin.com/jadiw/1/quiet

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM