M
Melbfella
G'day All,
I'm creating a classic ASP page that draws pieces dynamically.
In some cases, I need to draw a <select> tag and populate it.
I then want to hide this control immediately and pop it back up if the
users chooses the corresponding checkbox.
I have the pop up part nailed, but hiding it when the page loads is
eluding me....
This javascript code works well to hide it, if it exists :
frmMain.cboJumpOffPoint.style.display='none';
The problem is, if I haven't drawn the <select> tag, the code fails...
Is there a way to determine if a control exists in javascript before I
attempt to hide it?
Thanks in advance,
Doug.
I'm creating a classic ASP page that draws pieces dynamically.
In some cases, I need to draw a <select> tag and populate it.
I then want to hide this control immediately and pop it back up if the
users chooses the corresponding checkbox.
I have the pop up part nailed, but hiding it when the page loads is
eluding me....
This javascript code works well to hide it, if it exists :
frmMain.cboJumpOffPoint.style.display='none';
The problem is, if I haven't drawn the <select> tag, the code fails...
Is there a way to determine if a control exists in javascript before I
attempt to hide it?
Thanks in advance,
Doug.