Hi All!

I have a problem with my jquery code in IE browser. See bellow:

I have two <select>: first - brand auto, second - model of auto.
<select> with models is generated depending of brand using jquery
instruments

brand.js

$(document).ready(function() {
    $('select#id_brand').change(function() {
    var url = '/ajax/brand/';
    $.getJSON(url, {id: $(this).val()}, function(j) {
        var options = '';
        for (var i = 0; i < j.length; i++) {
        options += '<option value="' + j[i].id + '">' + j[i].name + '</
option>';
        }
        $('select#id_model').html(options);
        $('select#id_model').removeAttr('disabled');
    });
    });
});

This code work in many browsers but not in IE. Can anybody help me? TIA

Reply via email to