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."

enter image description here

i'd check output , amend option , style tags accordingly


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -