古物営業法の規定に基づく表示
古物営業法の規定に基づく表示
| 古物営業法の規定に基づく表示 | |||||
|
‘);
// .faq__group-listの先頭にfaq_ancor_areaを追加
$(‘.faq__group-list:first’).prepend(faqAnchorArea);
// ループしてIDを連番で設定し、テキストを抽出してアンカーを作成
faqGroupTitles.each(function (index) {
var titleText = $(this).text();
var anchorID = ‘faq-title-‘ + (index + 1);
// アンカーを作成してfaq_ancor_areaに追加
$(‘‘).attr(‘href’, ‘#’ + anchorID).text(titleText).appendTo(faqAnchorArea);
// アンカーを作成して展開
$(this).attr(‘id’, anchorID);
});
}
});


