homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

Accessing a ddlb with an array name
Using JavaScript

 1:36 am on May 19, 2003 (gmt 0)

Hi All,

Using JavaScript, how do you access a drop down list boxes selectedIndex if the name of the ddlb is an array?
e.g. select name="arrayname[]"

This should be an easy one for anyone who knows JavaScript:)

Thanks in advance.




 5:18 am on May 19, 2003 (gmt 0)

C'mon guys!

Don't tell me there are no JavaScript guru's out there:)

Actually I have solved the problem.
I've been looking at the getElementById method and it seems to have done the job. The only thing is it has issues with some browsers (NN4 etc). This can be overcome by using alt syntax. (e.g. document.layers['id'])



Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved