61,125
社区成员
发帖
与我相关
我的任务
分享
<tr>
<td class="tdStyleR">
<input id="mobileid" type="text"
onblur="mobileCheck1(this,document.form.spaninfomobile)"/>
<span id="spaninfomobile"></span>
</td>
</tr>
<tr>
<td class="tdStyleR">
<input id="mobileid" type="text"
onblur="mobileCheck1(this,document.getElementById('spaninfomobile'))"/>
<span id="spaninfomobile"></span>
</td>
</tr>
或者在mobileCheck1中直接获取
function mobileCheck1(obj)
{
var spanObj = document.getElementById('spaninfomobile');
...
}