|
Hello,
I have a program that uses the Javascript DOM to create/remove a list of items on a page, however I'm trying to make it Browser Compatible.
Here is the code that I'm trying to create:
document.getElementById('ColumnNo'+ LineCounter).options[LineCounter-1].selected
LineCounter is a number that I increment each time this command runs through a loop.
Example: ColumnNo1, ColumnNo2, ColumnNo3, etc.
What I want to know is how do I dynamically create a string (ColumnNo1, ColumnNo2, ColumnNo3, etc.) and use that string to call that button? The command above works in IE, but not in FireFox or Netscape.
Thanks for any help you can provide.
Michael
|