Wordpress Themes - Debt Consolidation - Debt Consolidation - WoW Gold - Download Anime

PDA

View Full Version : How do I get the value of a select list with '[]'


Betty_S
Feb 12th 2007, 11:03 pm
Hi 2 U all

I have a <select> with no id, and its names is "sltc1[]".
I want to retrieve its selection,
I tried "document.form1.slct1.value" or "document.form1.slct1[].value" but faild.
How do I get the value?

TKS In Advance.

ajsa52
Feb 12th 2007, 11:10 pm
Try this: document.form1.slct1[document.form1.slct1.selectedIndex].value