I have the following code:
$(".datePicker").datepick();
$("#IconDate").on("click", function () {
$("#Date").focus();
})
My Html:
<div class="float-left gutter-right field-wrap">
<label for="admissionEndDate">Data Admissão Fim</label>
<span class="input-type-text">
<input type="text" id="Date" name="admissionEndDate" class="datePicker hasDatePick" />
<a href="#" class="datePicker" title="Calendário" id="IconDate">
<img src="~/Content/images/icons/fugue/calendar-month.png" width="16" height="16" />
</a>
</span>
</div>
You need to click on the icon that appears the data picker that is stylized, but when I click on the input it also appears. was not to appear in the click of the input.