Closed cpierce closed 11 years ago
You still want to use a form selector bur grouped? Or you don't want to use this on a form at all?
What I was thinking is the following example:
<select id="PhotoAlbums" multiple="multiple" name="photos[]">
<optgroup label="Album1"> <option data-img-src="/img/photos/phot1.jpg" value="1">Photo 1</option> <option data-img-src="/img/photos/phot2.jpg" value="2">Photo 2</option> </optgroup>
<optgroup label="Album2"> <option data-img-src="/img/photos/phot3.jpg" value="3">Photo 3</option> <option data-img-src="/img/photos/phot4.jpg" value="4">Photo 4</option> </optgroup> </select>
If we were to take the above code and convert it into a grouping of photos where you could have the photos in album 2 and the photos in album 1 somehow seperated this would be wonderful.
Let me know if that makes sense?
That sounds pretty good. I'm a little overwhelmed right now though. Will look unto it as soon as I can.
This is supported starting on version 0.1.6
Could we create a sort of albums using <optgroup> so that photos from different albums could be "grouped"?