We've expanded our news coverage and improved our search! Visit news.oreilly.com for the latest or search for all things across O'Reilly!
advertisement

Article:
  Cooking with JavaScript & DHTML
Subject:   oops
Date:   2006-06-28 07:26:06
From:   jason2584
Response to: a better mousetrap

The terminating expression on the for loop in the code I posted was incorrect. It should run for i < ddl.options.length, not i < ddl.options.length-1. My bad.