I have two print buttons.
1) Print to “Kitchen”
2) Print to “bar”
The webpage which has data is a single page.
How can i tell the print command to take
1) printer installed in Kitchen when user selects Print to “Kitchen” and
2) take printer in bar when user selects “print to bar”.
The data which needs to be printed will be different. For example
For kitchen i want to include first html table.
For Bar i want to include 2nd html table.
Hope it makes sense.
Thanks
The webpage can not select what printer to be used. You can though, however, make an event happen when you click either button for specific styling.
Like, when you click on the “Kitchen” button you add a kitchen class to
<body>that in the CSS means that the<table>is visible. But if you click the “Bar” button it removes the kitchen class and adds a bar class to<body>instead and the<table>is not visible.