/    Sign up×
Community /Pin to ProfileBookmark

Can you make a select list with 2 columns?

Is is possible to make select lists in html that has 2 columns?

I kinda tried forcing the issue by putting tables inside each option so you can format the column widths, but it doesnt work in ie, though it appears ok in mozilla.

is there a legitimate way to do such a thing in html or to produce in in a webpage?

<html>

<form>
<select NAME=”list1″ SIZE=3 MULTIPLE>
<option VALUE=”opt1″>
<table>
<tr><td>option1 </td><td> this is option 1</td></tr>
</table>
</option>
<option VALUE=”opt2″>
<table>
<tr><td>option2 </td><td> this is option 2</td></tr>
</table>
</option>
<option SELECTED VALUE=”opt3″>
<table>
<tr><td>option3 </td><td> this is option 3</td></tr>
</table>
</option>
</select>
</form>

</html>

to post a comment
HTML

1 Comments(s)

Copy linkTweet thisAlerts:
@KravvitzAug 21.2006 — No elements are allowed inside an <option> element.

I suggest you use a <table> with a checkbox (since I see you specified the "multiple" attribute.) for each row instead of a <select> element.
×

Success!

Help @arzoo spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.29,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...