Skip to content

Commit d2bd01a

Browse files
committed
Datepicker: Fixed #4684 Datepicker bug when textbox id contains '$'
1 parent 61e15b1 commit d2bd01a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ui/ui.datepicker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ $.extend(Datepicker.prototype, {
156156

157157
/* Create a new instance object. */
158158
_newInst: function(target, inline) {
159-
var id = target[0].id.replace(/([:\[\]\.])/g, '\\\\$1'); // escape jQuery meta chars
159+
var id = target[0].id.replace(/([:\[\]\.\$])/g, '\\\\$1'); // escape jQuery meta chars
160160
return {id: id, input: target, // associated target
161161
selectedDay: 0, selectedMonth: 0, selectedYear: 0, // current selection
162162
drawMonth: 0, drawYear: 0, // month being drawn

0 commit comments

Comments
 (0)