Dear helpers,
I have another question. My survey is almost ready but could be visually improved.
Context : following help recieved on
this very forum
, I have a question A where I list a lot of projects. People have to check the ones they know of. Question B is about whether they attended the projects they know (checked at A) and question D is an array where they assess the satisfaction about projects they attended (checked at B ).
The solution given previously works perfectly, but I had to make question A (and others) looking like this :
Fruits - Apple []
Fruits - Banana []
Fruits - Strawberry []
Vegetables - Onions []
Vegetables - carrots []
And what I would like, if possible, is :
Fruits
- Apple []
- Banana []
- Strawberry []
Vegegatbles
- Onions []
- Carrots []
One idea I had was to use html/css, like this :
Fruits<br />- Apple []
- Banana []
- Strawberry []
Vegetables<br />- Onions []
- Carrots []
But this does not work as people may select only one suboption that may not be te first one (e.g., only Banana and Carrots).
Is there any way to create such option categories (the equivalent of the optgroup tag in a select tag) ??