[Javascript] Select Box - NEW QUESTION

Flavio Gomes flavio at economisa.com.br
Mon Jun 14 15:18:28 CDT 2004


In PHP we just name the select box as "mylist[]".
  Everyone'll say it's not w3c compliant.. but that's the only way that 
I could made it work.

---
Flavio Gomes
flavio at economisa.com.br



Dave Stoltz wrote:

>Along these same lines, I just discovered another problem.
>
>If I have multiple items in my list box, and when the form is submitted, I
>want to select ALL of the items (so all values pass to next page) - it works
>in IE, but not Netscape....why?
>
>Here is my code:
>
><form action="send.asp" method="post" name="form1" id="form1"
>onSubmit="return checkit();">
>
>
>In the HEAD section:
><script>
>	if (form1.mylist.options.length>0){
>		var howmany = form1.mylist.options.length;
>		for( var count = 0; count < howmany; count++)
>		form1.mylist.options[count].selected=true;
>	}	
></script>
>
>
>Any ideas??? (other than the fact that Netscape blows chunks) ?
>
>Thanks!
>Dave
>
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>https://lists.LaTech.edu/mailman/listinfo/javascript
>  
>



More information about the Javascript mailing list