malcolm_p — 2011-12-07T14:50:58-05:00 — #1
Everybody knows how a dropdown menu works where a person clicks on the drop down menu and it displays a drop down list where the user can select an option from the list. What I want to know is that is there a way in html where except displaying a dropdown list can I display a grid instead with the options in the grid? I havn't got any code for this but if anyone knows this is possible and can provide an example of this I would be very greatful and it would be very helpful.
This link will show you how I want it to be dislayed like but I do not know how this is done.
system — 2011-12-07T15:04:58-05:00 — #2
Or you can create your own in html and attach an onclick event handler to each colour to do whatever you need to with the chosen colour.
malcolm_p — 2011-12-07T15:47:13-05:00 — #3
system — 2011-12-07T15:53:47-05:00 — #4
There are a few ways you could make the grid. In this case you could justify using a table because the grid will be displaying tabular data. Other options to make the grid include using inline elements or floated elements.
malcolm_p — 2011-12-07T15:58:17-05:00 — #5
ok I will hava a look into this, I don't know if you know from experience but are you allowed to put <option> tags inside a <table> which will be inside a <select> tag? In other words can a table be displayed in a <select> tag?
system — 2011-12-07T16:07:25-05:00 — #6
afaik, the only elements allowed in a <select> are <option> elements and you can't display a table inside an <option>
malcolm_p — 2011-12-07T16:11:16-05:00 — #7
ok thanks for your help, I will do some more research on this