I am trying to only print 2 divs on a page
[code=html] <div id=”directions-panel”></div>
and
[CODE] <div id=”map_canvas”></div>
i am using this little bit of javascript
[CODE]function printSelection(node){
var content=node.innerHTML
var pwin=window.open(”,’print_content’,’width=100,height=100′);
pwin.document.open();
pwin.document.write(‘<html><body onload=”window.print()”>’+content+'</body></html>’);
pwin.document.close();
}
and the html is
[code=html]<a href=”” onclick=”printSelection(document.getElementById(‘directions-panel’));return false”>print</a>
the problem is i can only print the one
[CODE]document.getElementById(‘directions-panel’));return false”
how would i get both to print at the same time?