I Have a DropDownList
which is being populated from database on my asp.net webform.
The items of the DropDownList
expand according to the length of the items in Chrome and Mozilla. BUT in IE the items of the DropDownList get cut off.
I tried ...
var el;
$("select")
.each(function() {
el = $(this);
el.data("origWidth", el.outerWidth()) // IE 8 can haz padding
})
.mouseenter(function(){
$(this).css("width", "auto");
})
.bind("blur change", function(){
el = $(this);
el.css("width", el.data("origWidth"));
});
Which I found http://css-tricks.com/select-cuts-off-options-in-ie-fix/
but it doesnt seem to be working. Help!