IDを要素として使用するプロトタイプのツールチップを使用しています。1ページにツールチップがたくさんあるので、同じIDを1ページに2回以上使用することはできません。IDの代わりにCLASSを要素として使用する方法はありますか?これが私が持っているものです。
<div style="margin-right: 2px" id="tooltip_bio" class="">Learn More</div>
<script type="text/javascript" language="javascript">
new Tip('tooltip_bio', "Tooltip Content", {
title: "Bio",
closeButton: true,
showOn: 'click',
hideOn: { element: 'closeButton', event: 'click'},
stem: 'bottomMiddle',
hook: { target: 'topMiddle', tip: 'bottomMiddle' },
offset: { x: 0, y: -2 },
width: '300px'
});
</script>