I have a textbox with a javascript datepicker.
I would like to force the user to select a date and prevent the user from typing in their own date.
Below is my text box
<asp:TextBox placeholder="dd/mm/yyyy" ID="txtDate" AutoPostBack="false" runat="server" class="form-control" />
Datetime picker code.
<script type="text/javascript">
$(document).ready(function () {
$('#<%=txtDate.ClientID%>').datepicker({
dateFormat: 'dd/mm/yy'
});
});
</script>