如何把从数据库取出的数据转到一个隐藏的DIV中 并让其对应显示~ 10
//这个是隐藏的DIV<divclass="beneficalDetail"><divclass="beneficalDetailheader"><span><%=i+1...
//这个是 隐藏的DIV
<div class="beneficalDetail">
<div class="beneficalDetailheader"><span><%=i+1%>-受益人-<%=BenefiaryInfoList[i].clientName%></span><span class="function_area" index=<%=i%> ><span class="bnEdit">编辑 </span><span class="bnDel">删除 </span><span class="bnShow">展开 </span></span></div>
<ul style="display: none;">
<li><span class="fir">受益人姓名</span><span class="sec"><%=BenefiaryInfoList[i].clientName%></span></li>
<li><span class="fir">性别</span><span class="sec"><%=BenefiaryInfoList[i].sex_dummy%></span></li>
<li><span class="birthday">出生日期</span><span class="sec"><%=BenefiaryInfoList[i].birthday%></span></li>
<li><span class="fir">证件类型</span><span class="sec"><%=BenefiaryInfoList[i].IDType_dummy%></span></li>
<li><span class="fir">证件号码</span><span class="sec"><%=BenefiaryInfoList[i].IDNo%></span></li>
<li><span class="fir">证件有效期</span><span class="sec"><%=BenefiaryInfoList[i].documentLimit%></span></li>
<li><span class="fir">与被保人关系</span><span class="sec"><%=BenefiaryInfoList[i].relation_dummy%></span></li>
<li><span class="fir">受益比例</span><span class="sec"><%=BenefiaryInfoList[i].ratio%></span></li>
<li><span class="fir">受益顺序</span><span class="sec"><%=BenefiaryInfoList[i].order%></span></li>
</ul>
</div>
//这个是目标DIV
<div id="beneficalDetails">
</div> 展开
<div class="beneficalDetail">
<div class="beneficalDetailheader"><span><%=i+1%>-受益人-<%=BenefiaryInfoList[i].clientName%></span><span class="function_area" index=<%=i%> ><span class="bnEdit">编辑 </span><span class="bnDel">删除 </span><span class="bnShow">展开 </span></span></div>
<ul style="display: none;">
<li><span class="fir">受益人姓名</span><span class="sec"><%=BenefiaryInfoList[i].clientName%></span></li>
<li><span class="fir">性别</span><span class="sec"><%=BenefiaryInfoList[i].sex_dummy%></span></li>
<li><span class="birthday">出生日期</span><span class="sec"><%=BenefiaryInfoList[i].birthday%></span></li>
<li><span class="fir">证件类型</span><span class="sec"><%=BenefiaryInfoList[i].IDType_dummy%></span></li>
<li><span class="fir">证件号码</span><span class="sec"><%=BenefiaryInfoList[i].IDNo%></span></li>
<li><span class="fir">证件有效期</span><span class="sec"><%=BenefiaryInfoList[i].documentLimit%></span></li>
<li><span class="fir">与被保人关系</span><span class="sec"><%=BenefiaryInfoList[i].relation_dummy%></span></li>
<li><span class="fir">受益比例</span><span class="sec"><%=BenefiaryInfoList[i].ratio%></span></li>
<li><span class="fir">受益顺序</span><span class="sec"><%=BenefiaryInfoList[i].order%></span></li>
</ul>
</div>
//这个是目标DIV
<div id="beneficalDetails">
</div> 展开
- 你的回答被采纳后将获得:
- 系统奖励15(财富值+成长值)+难题奖励10(财富值+成长值)+提问者悬赏10(财富值+成长值)
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询