miob
07-15-2008, 05:01 AM
Hi !
I just figured that if i'm adding <select> menu into innerHTML, it doesn't work in FF, but it's running in IE.
there is HTML tag:
<p id="odstavec_kat"></p>
and i'm trying to add select menu into innerHTML , is that possible ?
sample of code:
document.getElementById("odstavec_kat").innerHTML="\t<select name=\"kategoria\" onchange=\"overhod( this.value)\" style=\"border:1px solid #6699FF; width:174; font-family:Verdana; font-size:8pt; height:17\" size=\"1\"><option selected value=\"53\">ostatné</option></select>";
maybe it should work with document.write, somweone experienced it ?
or must i make it only via form objects ??
m.
I just figured that if i'm adding <select> menu into innerHTML, it doesn't work in FF, but it's running in IE.
there is HTML tag:
<p id="odstavec_kat"></p>
and i'm trying to add select menu into innerHTML , is that possible ?
sample of code:
document.getElementById("odstavec_kat").innerHTML="\t<select name=\"kategoria\" onchange=\"overhod( this.value)\" style=\"border:1px solid #6699FF; width:174; font-family:Verdana; font-size:8pt; height:17\" size=\"1\"><option selected value=\"53\">ostatné</option></select>";
maybe it should work with document.write, somweone experienced it ?
or must i make it only via form objects ??
m.