IE input selection block

I am looking for the easiest solution to solve the problem that I have in Internet Explorer (6.7 and 8), whether it's CSS or using jQuery. I have a SELECT input with a specific width (due to where it is in the layout). Due to the fact that a certain selection width is disabled from displaying their full values, unlike Firefox and Safari, where they are automatically changed to show the full length of the value.

Is this a common problem? Any ideas?

code example:

<select id="Grouping_662066" class="productSelectInput" name="AddToCart_Grouping" onchange="DrawProduct(36331,662066,this.value,'',true);">
</select>

I use the CMS system, the class ' productSelectInput' is the only identifier that will be included on the website. Properties will change ID, nameand onchange.

+3
source share
5 answers

Here is the information and solution using jQuery.

+4
source

Given these limitations, the only thing I can offer for IE is to possibly reduce the font size.

I am not sure otherwise.

+1
source

Javacsript, onmousedown, onblur onchange CSS. jQuery ( ).

    var example = $('#some-id');

    $(example).mousedown(function() {
            $(this).css('width','400px');                            
    });
    $(example).blur(function({
            $(this).css('width','200px');                            
    });
    $(example).change(function() {
            $(this).css('width','200px');                            
    });
+1

, (IE).

& nbsp; Javascript . , css javascript (no 'select', 'ul') . (onBlur, javascript ).

0

ie8 psuedo-class: focus, . ie6 , , ie7

0

Source: https://habr.com/ru/post/1705947/


All Articles