I'm calling a function through <select onChange="funcname()"><option>. inside that function I got the selectedIndex value, but when I used that value as an index to get an array item which is declared in the <head> section and filled in the <body> I failed it always gets nothing.Does any one know why?
I suspect that the scope of your array is limited to the <head> section, and it is invisible/nonexistent in the <body>. On a larger issue, I would suggest that you consider moving to JavaScript, rather than wasting your time learning a much weaker language that works in only one browser. At this point, your script would not have to be altered a great deal to be ported to JS.
Thanks for the concern you show here, as a matter of fact I'm strongly considering to use JaveScript or use it altogther with VBScript, in the following days I will be looking for some updated refrences, In the mean time my concern is to be able of designing dynamic web pages, again thanks for your cooperation.
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!
Discuss This Question: 2  Replies