<input id="Username" name="Username" type="text" class="username" size="30" runat="server"onblur="checkNull(this)" /> function checkNull(tempId) {
alert(tempId);//这个会输出object
alert(tempId.Id);//这个会输出undefined
}究竟我要如何才能获取这个input的id值呢
alert(tempId);//这个会输出object
alert(tempId.Id);//这个会输出undefined
}究竟我要如何才能获取这个input的id值呢
alert(tempId);//这个会输出object
alert(tempId.id);//这个会输出undefined //小写
}
alert(tempId);//这个会输出object
alert(tempId.id);//这个会输出Username
}
是小写的嘛,tempId.id你写出大写的了