Js display.block doesn't work

Dear all,I have this dhtml code "print1.style.display=‘block’ " on a button click event to hide a set of fields on a form…this gives an error on page…

please help me

shana

Subject: js display.block doesn’t work

Should it be document.print1.style.display=‘block’ ?

Setting something to block wouldn’t hide it.

/Peter

Subject: js display.block doesn’t work

Hi Shana,

If print1 is the name of your div, the code should be something like this for hiding:

“document.getElementById(‘print1’).style.display = ‘none’;”

and

“document.getElementById(‘print1’).style.display = ‘’;” for showing.

Martin Vereecken

http://www.bizzybee.be (Notes blog)

Subject: thnks a lot…