Women in Technology

Hear us Roar



Article:
  Cooking with JavaScript & DHTML
Subject:   Small Problem with the Script
Date:   2006-05-17 07:36:03
From:   YugiReddy
Hi,
Its really nice script,
but i have one small difficulty with it.
as per my requirement :


e.g: If my list contains names like "Johnson","james","jake","joker","jones","Hans".....


"When i press "j" the control should goes to the elements starts with "j",and when i press "o" it needs to go to the elements those starts with "jo",and when i press "h" it needs to go to the elements those starts with "joh"....etc.


Up to this requirement it is working pretty gud.
But when i press some key say "K" after "joh" the control needs to be stay at "joh" as the word "johk" does not exists.


The control needs to be stayed at the element previously selected.



Please advise..,


Thnx in anticipation,