Help getting custom select menu's to work

Help getting custom select menu's to work

Hello, I am trying to get the Jquery custom select menu's to work so that each option will show a an image beside it, a language selector with the countries flag beside the countries name. I found a solution on Jquery UI (  https://jqueryui.com/selectmenu/#custom_render ), but it does not work. I am using dreamweaver building a mobile application and I use Jquery mobile there as well, I am wondering if there is issue between Jquery and Jquery mobile that is not allowing the custom select menu to work, or if the custom menu only works in certain browser (I've seen on other forums that using CSS with backgound: url("~") only works in firefox). I am designing my application to work solely offline, so it shouldn't matter what browser, just what platform/operating system it is using. Using Adobe's phonegap system I've tried it out on windows, iOS, and android operating system emulators and the custom select menu still does not seem to work in that it does display the menu as a drop down menu, but it does not display any image I've tried inserting. Any thoughts or tips?