471,881 Members | 1,464 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,881 software developers and data experts.

Formatting data in select box help


I really need some html help. The basic gist of what I need to do is to place several columns of data in a select box so it's readable.

Ideally I would use a table like so (would be many rows in the real appliaction) :

Expand|Select|Wrap|Line Numbers
  1. <table>
  2. <select name="something" size="10">
  3. <option value="w"><tr><td>name</td><td>price</td></tr></option>
  4. </select>
  5. </table>
However this results in the data being shown outside of the text box. Is there an way to achieve this effect?


Aug 9 '07 #1
2 1794
7,435 Expert 4TB
You don't have the table set up correctly and no values for the options. Look at this to get started.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
<meta http-equiv="content-type"

<style type="text/css">


<tr width="20">
<select name="something" size="10">
<option value="w">number one</option>
Aug 9 '07 #2
Thanks for your reply but thats not really what I had in mind. What I'd ideally like is for each selectable line in a select box be composed of a table row, 1 row deep by three columns. So in the finished select box we'd see several products on individual rows, along with their product number and price, these three fields in columns.

This may not be possible but is there a way to achieve a similar effect?

Aug 10 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by Dan Weeb | last post: by
8 posts views Thread by Vinay Jain | last post: by
reply views Thread by Randall Arnold | last post: by
2 posts views Thread by jodyblau | last post: by
reply views Thread by cfunn | last post: by
2 posts views Thread by =?Utf-8?B?Uml0YUc=?= | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.