Forum Moderators: open
IE all versions are not displaying the drop down list correctly. The hide the text exceeding the select width. I have try to solve the problem with JQuery. The JQuery helped me lot but there is still an Issue. When the option text is greater than the select width, it expand. Great job. But when the all texts are less than the select width, select box is contracted to them. I want to stop the contraction. As I have to use this in multiple pages dynamically. code is as
$(document).ready(function(){
$("#dropdown").mousedown(function(){
if($.browser.msie) {
$(this).width("css","auto");
}
});
$("#dropdown").change(function(){
if ($.browser.msie) {
$(this).css("width","175px");
}
});
$("#dropdown").blur(function(){
if ($.browser.msie) {
$(this).css("width","175px");
}
});