2
I have a datepiker
but it’s not working in a good way if I click on input
it works cool, but when I click on the calendar image it neither passes the value and also does not receive what is in input
:
Imagery:
Html:
<div class="float-left gutter-right field-wrap">
<label for="startDatePicker">Data Início</label>
<span class="input-type-text">
<input type="text" id="startDatePicker" name="startDatePicker" class="datePicker hasDatePick" placeholder="Data Início" />
<a class="calendar-icon with-tip" href="#" id="IconStartDate" title="Calendário">
<img src="~/Content/images/icons/fugue/calendar-month.png" width="16" height="16">
</a>
</span>
</div>
<div class="float-left gutter-right field-wrap">
<label for="endDatePicker">Data Fim</label>
<span class="input-type-text">
<input type="text" id="endDatePicker" name="endDatePicker" class="hasDatePick" placeholder="Data Fim" />
<a class="calendar-icon with-tip" href="#" id="IconEndDate" title="Calendário">
<img src="~/Content/images/icons/fugue/calendar-month.png" width="16" height="16">
</a>
</span>
</div>
JS:
$(document).ready(function () {
$("#startDatePicker").datepick();
$("#endDatePicker").datepick();
$("#IconStartDate").datepick();
$("#IconEndDate").datepick();
$("#closeModal").live("click", function () {
$.modal.current.closeModal();
});
});
Looks like it’s different from the input text and the calendar:
What datepicker plugin is this?
– Marco
Preferably try to ride a fiddle to facilitate the response.
– Marco
I asked because it’s strange the way you called the method, using
.datepick()
instead of.datepicker()
.– Marco
As I said, try to reproduce your problem in a fiddle where this behavior occurs. Because for me, using the default example works correctly. It may be some conflict with other code or plugin that you use.
– Marco
If that’s not
jquery-ui
, tell which plugin it is. If it is, the call is wrong...– ShutUpMagda