B
bbcrock
I take my hat in hand with a question.
I have dynamically named form elements set in divs based on a
server-side language. I am displaying these using DHTML in a
display:none, display:block format.
Due to some code (and deadline) issues I do not have the total number
of form elements set by the time the body tag is run. I wanted to have
a script tag later on in the document which reads something like:
<query>
<builds div element1i1, element1i2, etc>
<script language="javascript">
document.getElementById(' query variable '+1).style.display = 'block';
</script>
</query>
However the JavaScript code does not run. Alerts run inside the code
consistently, but the other code does change the display to block.
also tried running this same code as on OnFocus
Any suggestions or links to articles that discuss this?
thanks!
Don
I have dynamically named form elements set in divs based on a
server-side language. I am displaying these using DHTML in a
display:none, display:block format.
Due to some code (and deadline) issues I do not have the total number
of form elements set by the time the body tag is run. I wanted to have
a script tag later on in the document which reads something like:
<query>
<builds div element1i1, element1i2, etc>
<script language="javascript">
document.getElementById(' query variable '+1).style.display = 'block';
</script>
</query>
However the JavaScript code does not run. Alerts run inside the code
consistently, but the other code does change the display to block.
also tried running this same code as on OnFocus
Any suggestions or links to articles that discuss this?
thanks!
Don