I've got 3 'alternative' boxes, only one of which I want displayed,
according to the value of an earlier select (so I'm using the
<htmlelement>.s tyle property from javascript).
One is a div containing text, which I amend as appropriate with innerhtml
One is an image.
One is a div containing 4 input text boxes, which are disabled or not as
appropriate.
I've tried .style.visibili ty = "hidden" / "visible" (correctly leaves
blank space, which I don't want)
I've tried .style.display = "none" / "block" (works for moz, ie treats
as visibility)
I've tried setting .style.height & width to "0px" / null (doesn't work
for ie).
Any suggestions as to how to make the thing disappear and occupy no
space (dynamically) in ie as well as other browsers please ?
If anyone really needs to see the page, go to ccaweddingsdire ct.co.uk/basket
login with chris at ccagroup co uk (you'll need to accept a cookie) -
the password is set to testz (it doesn't confer any great privilege,
just accesses my test shopping basket).
then click 'enter personalisation ' for 4D01 (christmas card)
Select different wordings to change the bottom section - 10 and 'your
own wording' are the intereesting two, and orderpg.js is the js file.
It's an incomplete work in progress, sorry.
Thanks,
Chris
according to the value of an earlier select (so I'm using the
<htmlelement>.s tyle property from javascript).
One is a div containing text, which I amend as appropriate with innerhtml
One is an image.
One is a div containing 4 input text boxes, which are disabled or not as
appropriate.
I've tried .style.visibili ty = "hidden" / "visible" (correctly leaves
blank space, which I don't want)
I've tried .style.display = "none" / "block" (works for moz, ie treats
as visibility)
I've tried setting .style.height & width to "0px" / null (doesn't work
for ie).
Any suggestions as to how to make the thing disappear and occupy no
space (dynamically) in ie as well as other browsers please ?
If anyone really needs to see the page, go to ccaweddingsdire ct.co.uk/basket
login with chris at ccagroup co uk (you'll need to accept a cookie) -
the password is set to testz (it doesn't confer any great privilege,
just accesses my test shopping basket).
then click 'enter personalisation ' for 4D01 (christmas card)
Select different wordings to change the bottom section - 10 and 'your
own wording' are the intereesting two, and orderpg.js is the js file.
It's an incomplete work in progress, sorry.
Thanks,
Chris
Comment