1

我正在尝试从 Textbox ASP.NET 控件中获取日期字符串,但没有成功。我的代码是:

function countdown() {
    now = new Date();
    var biddate = $("#InitiateDate1").val();
    kickoff = Date.parse(biddate);
    diff = kickoff - now;...
4

2 回答 2

0

它是$('<%=InitiateDate1.ClientID%>').val();

于 2013-03-17T07:39:34.957 回答
0

你试一试

function countdown() {
    now = new Date();
    var biddate = document.getElementById('<%=InitiateDate1.ClientID%>').value
    kickoff = Date.parse(biddate);
于 2013-03-17T16:24:27.630 回答