PDA

View Full Version : Dynamic checkbox problem


hkucsis
03-11-2003, 03:24 AM
Hi,

I have a form with many checkboxes. The checkboxes are divided into two levels: when a level-1 checkbox is checked, the level-2 checkboxes associated to that particular level-1 checkbox will appear. In short, it is similar to a tree structure.

How do I accomplish this in NS4? I can use <div> to create the show-hide effect but I cannot manage the position of the <div>. What I mean is that, with IE, I have the property "display" so that I don't need to reserve space for the hidden <div>. However, in NS, we don't have this property.

Thanks in advance.

Michael

requestcode
03-11-2003, 03:35 AM
Is it really necessary to have it work in NS4? In NS4 version browsers you cannot place individual form elements in a div. The entire form has to be placed in the div. To access the form elements you would have to also specify the div name in a format like this:
var myvalue=document.div_name.document.form_name.field_name.value

If get rather messy. As far as I know you will have to hide the div and then show it when needed.