I want to make a dropdown list with table inside, the point is that I want both 'ID' and 'Name' field from a table in database to be showed up in the dropdown, so user can choose between 'ID' and 'Name' depending on which one is more familiar to them.
if I use:
<select>
<option value="<?php echo $id; ?>"><?php echo $id." | ".$name; ?>
</option>
.....
</select>
the interface will not be neat, as the size of the IDs are different, for example like
ACDKH | Marsha
AIIIL | Anna
How can I make a table inside?