• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

selectedIndex in a Select Box error

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is a autocomplete script that works with a textbox and a select box. It works fine for the most part, however when I clear the textbox (by back spacing, or delete button) it will load the select box with a blank entry (the select IS populated). When the script get to the bottom where I test for the selectedIndex value, it crashes ("Object doesn't support this property or method"). Even a alert crashes it. It seems to load the select with another option but without a index???

Suggestions?

Thanks,
Kevin C.

 
Kevin Cornwell
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
got it. on...
 
reply
    Bookmark Topic Watch Topic
  • New Topic