How can I include an external css file in jqprint? What could be the problem with my code why I can t Hide a simple button using an inline stylesheet with a media which is equal to print? Here is my sample code.
<style type="text/css" media="print">
#hide
{
display:none;
}
</style>
<script type="text/javascript" src="js/jquery.jqprint-0.3.js"></script>
<script type="text/javascript">
$(function() {
$( "#printMe" ).click(function() {
$('#print').jqprint();
});
});
</script>
<div id="header">
<h1>This is the Header</h1>
</div>
<div id="print"><br />
<input type="button" id="hide" value="hidden"/>
<input type="button" id="printMe" value="Print Me"/>
</div>
When I just use javascript's window.print, it hides the button with the id hide. What could be the problem ?