Opened 13 years ago

Closed 13 years ago

Last modified 10 years ago

#4964 closed bug (notabug)

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:


Hallo, Regarding Ticket 4516, seems the provided solution doesn't work (Firefox Error Console keeps saying "inst is undefined" in

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

Change History (3)

comment:1 Changed 13 years ago by ivanhalen

Sorry, my (partial) fault; I did not initialised the Date Picker, so the working code is this:

$('#ART_DATED').datepicker(); $('.dateButton').click(function() {



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 ( 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?


comment:2 Changed 13 years ago by Scott González

Resolution: invalid
Status: newclosed

Please ask for help on the mailing list not the bug tracker.

comment:3 Changed 10 years ago by Scott González

Milestone: TBD

Milestone TBD deleted

Note: See TracTickets for help on using tickets.