removing <option>s

admin

Administrator
Staff member
How can I loop through the <option>s in a select box and hide some of them that meet a certain condition?

This is what I need to do.
I am populating the options in a select box from a database with a list of people - everyone in a company. When the page first shows I need to restrict the list to just show everyone at a a particular location - <option value=http://www.webdeveloper.com/forum/archive/index.php/4>John Smith</option>.

I then need to be able to call a function that will display everyone in the list.

Thanks for any help.
 
Back
Top