I am trying to show images in Dropdown options
in Backbone template
. Each option will have image in it. I have tried different ways of doing this but couldn't succeed. Can anyone let me know correct way of doing this.
Here is code i am trying:
<div class="optionWrapper">
<select id="<%= id %>" class="extra_option">
<% _.each(options, function (opt) { %>
<option value="1" <img src="<? echo $uploads;?>option_thumbnails/<%= opt.thumbnail_file %>">></option>
<% }); %>
</select>
</div>
** in Bootstrap **Collapse**. In this way i achieved above drop down functionality.