我正在尝试从Textbox ASP.NET控件获取日期字符串,但没有成功。 我的代码是:
function countdown() {
now = new Date();
var biddate = $("#InitiateDate1").val();
kickoff = Date.parse(biddate);
diff = kickoff - now;...
答案 0 :(得分:0)
它是$('<%=InitiateDate1.ClientID%>').val();
答案 1 :(得分:0)
试试
function countdown() {
now = new Date();
var biddate = document.getElementById('<%=InitiateDate1.ClientID%>').value
kickoff = Date.parse(biddate);