this html only in chrome makes the selected value non visible, the bacground of the select in other browsers is colored, only in chrome it\'s white
First you have to detect the browser to fix the issue:
var userAgent = navigator.userAgent.toLowerCase();
$.browser = {
version: (userAgent.match( /.+(?:rv|it|ra|ie|me)[\/: ]([\d.]+)/ ) || [])[1],
chrome: /chrome/.test( userAgent ),
safari: /webkit/.test( userAgent ) && !/chrome/.test( userAgent ),
opera: /opera/.test( userAgent ),
msie: /msie/.test( userAgent ) && !/opera/.test( userAgent ),
mozilla: /mozilla/.test( userAgent ) && !/(compatible|webkit)/.test( userAgent )
};
Then change the font color to black:
$.each($.browser, function(i, val) {
if($.browser.chrome){
$(o).css({'color':'black'});
}
});