Reputation: 113
I'm writing my first jQuery Mobile app with PhoneGap/Cordova, and although I've had a few hiccups styling it just how I want, I've managed quite well.
That's until I came across forms. When I set a select element using jQuery, is there any way to remove the disc background of the icon? I tried assigning a class of ui-nodisc-icon
to the element, but it's not working.
I'm thinking of using my own icon implementation with FontAwesome, but I'd like to know if there's a way to do it directly with JQM.
Upvotes: 1
Views: 706
Reputation: 31732
You need to add it to div
wrapping select
menu. There is no static solution for this, as jQM wraps select
in a div upon widget enhancement.
$("#selectID").closest("div").addClass("ui-nodisc-icon");
Upvotes: 4