我需要使用标签类访问 div 类。将鼠标放在上面的逻辑<label class="name">
<div class="hidden">
被调用。请注意<li>
,<div>
id 一直是 unqiue
HTML
<li id="132" class="main" ><label class="name">Ajay</label>
<div class="hidden" id="132" >
<p>Some Msg!!<p>
</div>
</li>
<li id="192" class="main"> <label class="name">Raj</label>
<div class="hidden" id="192" >
<p>Some Msg!!<p>
</div>
</li>
<li id="231" class="main" ><label class="name">David</label>
<div class="hidden" id="231" >
<p>Some Msg!!<p>
</div>
</li>
So on...
jQuery
$('.name').hovercard({detailsHTML:$('.hidden').html()})
// on placing mouse on label <div class="hidden"> is called
请帮帮我