Jquery populate select menu list not working in ie

admin

Administrator
Staff member
I am populating a select form menu list based on another menu selection (in wordpress) with jquery code below. It works fine in all browsers excepet ie9/8. Any advice appreciated.

Code:
$jmake = $j("select[name='make']");
$jmodel = $j("select[name='model']");

$jmake.change(function (){
if($j(this).val() == "ALFA ROMEO") {
    $j("select[name='model'] option").remove();
    $j("<option>GT</option>").appendTo($jmodel);
    $j("<option>BRERA</option>").appendTo($jmodel);
    }

..hopefully that's clear. Thanks.