我有这样的跨度
<span id="selectedTests" class="emrFG">
<span id="lblSelectedTests" class="emrHDR" style="top:3;left:6;font-size:8pt;">Selections</span>
<span class="emrHDR" style="top:3;left:190;font-size:8pt;">Tests</span>
<div id="recordSet" style="top:19;height:112;width:444;"></div>
</span>
跨度显示了一些数据行,我希望使用document.all
方法单独调用这些行
我该怎么办?
答案 0 :(得分:1)
document.all
非常旧,请参阅my answer to another question。请改用document.getElementById
。
示例:
var theElement = document.getElementById("lblSelectedTests");