Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Showing results 1 to 2 of 2
Search took 0.00 seconds.
Search: Posts Made By: interrupt
Forum: Javascript How-To March 18th, 2005, 12:18 PM
Replies: 2
Views: 1,600
Posted By interrupt
Doh! It was really simple! var theoptions =...

Doh! It was really simple!

var theoptions = document.form2.dateselect.options
for (i = 0; i < 5; i++){
theoptions[0]= null;
}

Of course! The index shifts, so its always 0!

Thanks
Forum: Javascript How-To March 18th, 2005, 11:56 AM
Replies: 2
Views: 1,600
Posted By interrupt
Select box for loop(probably really simple)

Hi,

I am trying to get a select box to reset all its options to null. This is my code:

var theoptions = document.form2.dateselect.options

for (i = theoptions.length; i < 5; i++){
...
Showing results 1 to 2 of 2

 




Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.