[thelist] pass by value in JavaScript?

Plunkett, Matt MPlunkett at MSA.com
Thu Apr 25 11:37:01 CDT 2002


	-----Original Message-----
	From:	Simon Dell [SMTP:simondl at epic.co.uk]
	Sent:	Thursday, April 25, 2002 11:54 AM

	At 11:37 25/04/02 -0400, you wrote:

	>form.select1.options[0] = new Option(form.select2.options[0].text,
	>form.select2.options[0].value);

	What does this line do???

It creates a new Option element that has the same text and value properties
as the one in form.select2.options[0], and then inserts that as the first
option in form.select1.



More information about the thelist mailing list