jquery - How to show Font Awesome icons on Rails select_tag -
i have dropdown in form_tag
similar 1 below @icons = icon.all
model:
<%= select_tag :icon_id, options_for_select(@icons.collect{ |u| [u.icon_code, u.id] }), class: "form-control" %>
this dropdown font awesome icons unable render them on browser. possible without installing jquery plugin?
apparently so:
https://github.com/fortawesome/font-awesome/issues/996
"however, fontawesome unicode font based iconset, , possible include icon in option, or select list, referencing it's unicode character directly."
i'd check output , amend option , style tags accordingly
Comments
Post a Comment