Jeremy Davis
February 7th, 2003, 10:10 AM
I have a <select> list with loads of <option> elements. I would like to provide an edit box that when typed into reduces the number of <option> elements to matching ones only.
I wish to use JavaScript only, and I relaise I could use a large array, match the array, emply the <select> list, and re-populate using the matches. however there are so many <option> elements that I'd rather not create an array as this would slow the page download speed.
Perhaps is there any way I can make an <option> element invisible? Can anyone think of a better way please? Thanks. :)
I wish to use JavaScript only, and I relaise I could use a large array, match the array, emply the <select> list, and re-populate using the matches. however there are so many <option> elements that I'd rather not create an array as this would slow the page download speed.
Perhaps is there any way I can make an <option> element invisible? Can anyone think of a better way please? Thanks. :)