All,
Thank you for your indulgence.
I am trying to dynamically set the options of a select based on
the option selected in a previous select. The javascript code for
a particular case is thus:
for (i=1; i" + Process[i]['Name'] + "";
}
break;
}
The select element it is referenc
I have a script that calculates "price" and I need it to set the
innerHTML of a tag, I thought I could just say
show_price_top.innerHTML = (price);
but that dont work, It works if I just say
show_price_top.innerHTML = ("price");
but it just puts the string value of "price" in the field
Here
I'm not sure exactly what the problem is, but I might try an approach
that does not use innerHTML if possible as I think it simplifies the
code. The example I put together is kind of long, so rather than
including it, you can view it here:
http://cantrell.dyndns.org/~cantrell/tmp/selectTest
I'd agree -- JavaScript for any browser I'm familiar with had the Option
class afaik before innerHTML and it's always been very nice / clean and easy
to use. I use innerHTML but never for select boxes.
> I'm not sure exactly what the problem is, but I might try
> an approach
> that does not use in
4 matches
Mail list logo