これが私がこれまでに持っているものです。http://jsfiddle.net/Scybf/22/
$('[id^=content]').hide();
$('#baseSection, #headSection').on("click", "li", function () {
var id = ($(this).parent().attr('id') == 'selectable') ? $(this).attr('id').replace('base', '') : $(this).attr('id').replace('head', '');
$("#customContent").html($("#content-" + id).html());
});
私がそれをする必要があるのは、ベースとヘッドのIDを同じ内容にすることです。たとえば、base1 + head1=content1またはbase1+head 2=content2です。
どんな助けでも大歓迎です。