hello,
i am using this, i want once user selected the date and button click fired txtbox again become blank
i want to make textbox blank
<script type="text/javascript">
$(function () {
var selectedDates = [];
datePicker = $('[id*=txtdate]').datepicker({
startDate: new Date(),
minDate: 0,
multidate: false,
format: "mm/dd/yyyy",
daysOfWeekHighlighted: "5,6",
daysOfWeekDisabled: [0, 6],
language: 'en'
});
datePicker.on('changeDate', function (e) {
if (e.dates.length == 1) {
selectedDates = e.dates;
document.getElementById("<%=Button1.ClientID %>").click();
} else {
datePicker.data('datepicker').setDates(selectedDates);
alert('You can only select 3 dates.');
}
});
});
</script>
<asp:TextBox ID="txtdate" runat="server" placeholder="Date" autocomplete="off" ></asp:TextBox>