我认为,我有以下职能:
$(function() {
$( #datepicker ).datepicker({
changeMonth: true,
dateFormat: "dd M yy",
changeYear: true,
showButtonPanel: true,
autoSize: true,
altField: "#txtDate",
onSelect: function(dateText, inst) {
$.ajax({
type: "POST",
url: "/LiveGame/Partial3?gameDate=" + dateText,
dataType: "html",
success: function(result) {
var domElement = $(result);
$("#dvGames").html(domElement);
}
});
}
});
$( #dvGames ).load(
<%= Url.Action("Partial3", "LiveGame") %> ,
{ gameDate: $("#txtDate").val() }
);
});
我有两个投入:
<input type="text" id="txtDate" name="txtDate" readonly="readonly" class="cornerdate" />
<input id="datepicker" class="cornerimage" type="image" src="../../Content/images/calendar.gif" alt="date" />
但是,当页数甚至指定带纤维时,txtDate就没有填满。 我怎么能够确定?