mootools 1.11 .setHTML not working in IE

Posted by moleculezz on Stack Overflow See other posts from Stack Overflow or by moleculezz
Published on 2010-05-05T12:19:21Z Indexed on 2010/05/06 13:08 UTC
Read the original article Hit count: 144

Filed under:
|

Hello,

I am trying to make a form dynamic using mootools 1.11, for specific reasons I cannot upgrade atm.

I'm trying to manipulate a select field to have dynamic options. This works in Firefox & Chrome but not IE8. Hope there's a fix for this.

bits of the code:

myOptions(hrs+1, 23, 'uur');
$('vertrektijd_uur').setHTML('<option value="">Kies uur</option>'+options_uur);

$('vertrektijd_uur').addEvent('change', function() {
            hrsChanged = $('vertrektijd_uur').getValue();
            hrsChanged = parseInt(hrsChanged);
            if(hrs+1 == hrsChanged)
            {
                myMinutes(parseInt(min));
                myOptions(minChanged, 55, 'min');
                $('vertrektijd_min').setHTML('<option value="">Kies minuten</option>'+options_min);
            }
            else
            {
                myOptions(0, 55, 'min');
                $('vertrektijd_min').setHTML('<option value="">Kies minuten</option>'+options_min);
            }
        });

© Stack Overflow or respective owner

Related posts about mootools

Related posts about JavaScript