How do you change the css rule of #div1 in the style type="text/css" media="print" using javascript? I want to change the display to none on the click event of a checkbox/button.
<style type="text/css" media="screen">
#div1{
display:visible;
}
</style
<style type="text/css" media="print">
#div1{
display:visible;
}
</style
Thank You in advance