Chris Jordan wrote:
function DeleteGroup(){
    var $group = $("#GroupKeyID")[0];
    var index = $group.selectedIndex;
    var groupname = $group[index];
    $.dump(groupname);
}

Do you have a test page we could look at?

Something looks suspicious there to me. In the first line, $group is defined to be a DOM object, presumably a SELECT one. In line two, you get its selectedIndex, but in line three you are trying to use it as an array with a numeric index. Do you want instead

    var groupname = $group.options[index]

? I don't know why FF would get this right, but perhaps it allows such short-cut access to the "options" property.

Good luck,

  -- Scott

Reply via email to