Why don't you just check the "display"
property if it is "none"
, what it is hidden for, if it "inline"
, what it is visible for:
$.each (t.config.promoInput, function (i, v) { var size = 0; $.each ($(v).find('option'), function (i, va) { $(va).show()
Take a look here http://jsfiddle.net/gwbTm/2/ (I tested it in Chrome).
I believe that setting visibility <option>
is what creates a problem with browsers (especially with IE)
source share