<html>
<head>
<script src="test/jquery.dataTables.min.js"></script>
<script>
ajaxHelperTemplate = "custom_web_template.html?object_code=ASP_AJAX_LIB";
</script>
<script>
$(document).ready(function() {
$( function() {
$( "#datepicker_from" ).datepicker();
$( "#datepicker_to" ).datepicker();
} );
$.ajax({
url: ajaxHelperTemplate,
async: false,
data: {
date_from: $('#datepicker_from').val(),
date_to: "qwe",
action: "show_info_action"
},
type: "POST",
dataType: "text",
success: function(response) {
$('#info')[0].innerHTML = response
},
error: function() {
console.log("Ajax не прошел");
}
});
} );
</script>
</head>
<body>
<p>Дата от: <input type="text" id="datepicker_from" value='zxc'></p>
<p>Дата по: <input type="text" id="datepicker_to"></p>
<p id="info"></p>
</body>
</html>