my application in facebook is not working fine in chromebrowser

Feb 23, 2010 at 6:25 AM

HERE IS THE function

function RemoveFriend()

var sSelectedIds;

$(".selected_friend_selected").each( function() {
sSelectedIds = $("#divSelectedList").prev().val();
if (sSelectedIds.indexOf($(this).attr('id').substring(4)) !== -1){
sSelectedIds = sSelectedIds.replace($(this).attr('id').substring(4) + "#" , '');
$("#divSelectedList").prev().val(sSelectedIds);
$(this).remove();
}

});

}
it is not working in chrome,

am using asp.net(vb.net code) and intergated with facebook and iam having 2 buttons 1 is add picture and 2 is delete picture, both buttons are working fine in IE and firefox, but in chorme add picture is working but delete picture is not working