$('#s1s2s3s4').droppable({
drop: function (e, ui) {
switch(ui.draggable.attr('id')) {
case 'id1':
$( this ).html( "id12" );
break;
case 'id2':
$( this ).html( "id21" );
break;
default:
alert('Other block');
}
}
});