var txdat=document.getElementById('<%=txtCheckIn.ClientID %>'+"_txtDateVal"); 转载于:https://blog.51cto.com/dsktt/1532484