Search and Top Navigation
#4964 closed bug (notabug)
Opened November 18, 2009 04:27PM UTC
Closed November 23, 2009 01:09AM UTC
Last modified October 11, 2012 09:15PM UTC
Custom trigger for DatePicker again
Reported by: | ivanhalen | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | ui.datepicker | Version: | 1.7.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Hallo,
Regarding Ticket 4516, seems the provided solution doesn't work (Firefox Error Console keeps saying "inst is undefined" in http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js)
Here's the HTML code:
<input name="ART_DATED" id="ART_DATED" type="text" class="date" value="<%= Date() %>" size="10" maxlength="10" />
<a href="javascript:void(0);" class="dateButton">Click here</a>
Pleas, where am I wrong?
Thanks
Attachments (0)
Change History (3)
Changed November 19, 2009 02:12PM UTC by comment:1
Changed November 23, 2009 01:09AM UTC by comment:2
resolution: | → invalid |
---|---|
status: | new → closed |
Please ask for help on the mailing list not the bug tracker.
Changed October 11, 2012 09:15PM UTC by comment:3
milestone: | TBD |
---|
Milestone TBD deleted
Sorry, my (partial) fault; I did not initialised the Date Picker, so the working code is this:
$('#ART_DATED').datepicker();
$('.dateButton').click(function() {
$('#ART_DATED').datepicker('show');
});
Anyway, clicking on the input field still opens the Date Picker, and that's just what I'm trying to avoid (the user should be FORCED to click on the link to open the Date Picker, otherwise he can simply type a date in the input field)
The "Icon trigger" demo example works right (http://jqueryui.com/demos/datepicker/#icon-trigger): it opens the Date Picker only when clicking on image, NOT on the input field... How can I reach this with a simple link instead of a button/image?
Thanks