IE6 & 7 bug with clone and/or appending

IE6 & 7 bug with clone and/or appending

  1. $(".multipleSelect option").live("click", function() {
  2.       var thisId = $(this).attr("id").split("-");

  3.       if($(this).parent().hasClass("add-" + thisId[1])) {

  4.             if(!$(this).hasClass("disabled")) {
  5.                   var optionClone = $(this).clone().attr("id", "remove-" + thisId[1] + "-" + thisId[2]);
  6.                   $(this).addClass("disabled");

  7.                         if($(this).hasClass("all")) {
  8.                               $(".multipleSelect.remove-" + thisId[1]).find("option").remove();
  9.                               $(".multipleSelect.add-" +             thisId[1]).find("option").removeClass("disabled");
  10.                         }

  11.                         else {
  12.                               $(".multipleSelect.remove-" + thisId[1]).find(".all").remove();
  13.                         }

  14.                    $(".multipleSelect.remove-" + thisId[1]).append(optionClone);
  15.                   }
  16.             }

  17.       else {

  18.             $(".multipleSelect.add-" + thisId[1]).find("#add-" + thisId[1] + "-" + thisId[2]).removeClass("disabled");
  19.             $(this).remove();
  20.       }
  21. return false;
  22.  });  

    HTML:

  23. <select size="4" multiple="multiple" name="addPerson" class="multipleSelect add-event">
     <option value="9" id="add-event-9">Name 1</option>                        
      <option value="10" id="add-event-10">Name 2</option>                        
      <option value="0" class="all" id="add-event-all">All</option>
     </select>

    <select size="0" multiple="multiple" name="addedPeople" class="multipleSelect remove-event">
                        
     <option value="0" class="all" id="add-event-all">All</option>

    </select>









Javascript is in the document.ready. This works well in FF, Safari etc. but on IE 6 or 7 it does nothing. Tried replacing the live() with click(), but that did not help either. Any advice?