![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
i have a function that has a number passed to it the variable is called "bioId" .... so lets say I pass a 3 i want that statement to say document.bio3.display = 'none'; |
|
is there a way to do this? something like document.bio{bioId}.display = 'none'; |
#3
| |||
| |||
|
|
hello, i have a question on using javascript with the DOM can anyone help me out i have a function that has a number passed to it the variable is called "bioId" function visible(bioId); this number ranges between 1 and 6 there is a statement in the function document.bio.display = 'none'; i want the statement to change depending on what number i pass to the function so lets say I pass a 3 i want that statement to say document.bio3.display = 'none'; is there a way to do this? something like document.bio{bioId}.display = 'none'; |
![]() |
| Thread Tools | |
| Display Modes | |
| |