I have a Datepicker bootstrap as below, and I have a button that should pass the date selected in the datepicker to the Servlet that will use this date as the parameter for a mysql search. How can I pass this date to Servlet? I have tried several examples that I found on the web, but without success.
Button:
<img src="IMG/check.png" style="cursor:pointer" onclick="UpdateGrafico();" />
Datepicker:
<!--datepicker1 -->
<div class="container" style="width: 100%;
margin: 0.5em auto;
padding: 1em;
border: 1px solid greenyellow;
border-radius: 0.5em">
<div class="row">
<div class='col-sm-3' style="margin-left:10px;">
<div class="form-group">
<div class='input-group date' id='datetimepicker1' >
<input type='text' class="form-control" id="d"/>
<span class="input-group-addon">
<span class="glyphicon glyphicon-calendar"></span>
</span>
</div>
</div>
</div>
<img src="IMG/check.png" style="cursor:pointer" onclick="UpdateGrafico();" />
<script type="text/javascript">
$i(function () {
$i('#datetimepicker1').datetimepicker({
format: 'DD/MM/YYYY HH:mm'
});
});
</script>
</div>
</div>
<!--datepicker1 -->