简体   繁体   中英

access asp calendar from javascript?

I have a mix of js and asp charts on a web page. I would like the js charts to update when on the post back of the calendar. is there a way to get the selected date from the calendar using js?

<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>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM