我在网页上混合了js和asp图表。我希望js图表在日历的帖子后面更新。有没有办法使用js从日历中获取所选日期?
答案 0 :(得分:0)
<span class="auto-style1"><strong>From Date: </strong></span>
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.5/themes/base/jquery-ui.css" type="text/css" media="all" />
<link rel="stylesheet" href="http://static.jquery.com/ui/css/demo-docs-theme/ui.theme.css" type="text/css" media="all" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.5/jquery-ui.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function () {
$("#<%= txtFrom.ClientID %>").datepicker();
$("#<%= txtTo.ClientID %>").datepicker();
});
</script>