Datepicker through jquery.
$(document).ready(function() {
$( "#start" ).datepicker({ dateFormat: 'yy-mm-dd' });
$( "#end" ).datepicker({ dateFormat: 'yy-mm-dd' });
$("#chart").click(function(){
$.ajax({
type: "post",
url: "buildreport1.jsp",
data: {
input: $('#start').val(),
output: $('#end').val()
},
success: function(response){
alert('hi');
$('#output').html(response);
}
});
});
});