var generic_lookup_Enr_Rds_Section2009_selected = function(id, to_s) {
$(".cross-reference-section-value-id").text(id);
$(".cross-reference-section-value").text(to_s);
$(".cross-reference-section-value").css('display', 'inline');
$("#modal_popup").dialog("destroy");
$(".cross-reference-clear-img").removeData([id, to_s]);
};
このJavaScriptによって、IDと文字列を取得し、HTMLページのラベルフィールドに保存します。ここで、css属性でIDを非表示にします。文字列を表示するだけです。文字列の横に明確な記号の画像を追加しました。その画像をクリックすると、idフィールドとstringフィールドの両方がクリアされ、画像アイコンが非表示になります。