How to Handle Variable Number of Items with <select>

P

Peter Lauren

I can make a drop down select list thus.

<select>
<option value="lion">Lion</option>
<option value="tiger">Tiger</option>
<option value="cheetah">Cheetah</option>
<option value="leopard">Leopard</option>
</select>

However it is fixed at 4 specific items. How would I modify the
select block that that I could handle and number of items, with any
number of different names such as from a database.

Many thanks in advance for any help,
Peter.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,189
Members
46,734
Latest member
manin

Latest Threads

Top