diff --git a/jquery.date_input.js b/jquery.date_input.js index 84ae311..051df19 100644 --- a/jquery.date_input.js +++ b/jquery.date_input.js @@ -101,14 +101,14 @@ DateInput.prototype = { this.changeInput($(event.target).attr("date")); })); - $("td[date=" + this.dateToString(new Date()) + "]", this.tbody).addClass("today"); + $("td[date='" + this.dateToString(new Date()) + "']", this.tbody).addClass("today"); $("td.selectable_day", this.tbody).mouseover(function() { $(this).addClass("hover") }); $("td.selectable_day", this.tbody).mouseout(function() { $(this).removeClass("hover") }); }; $('.selected', this.tbody).removeClass("selected"); - $('td[date=' + this.selectedDateString + ']', this.tbody).addClass("selected"); + $('td[date="' + this.selectedDateString + '"]', this.tbody).addClass("selected"); }, // Select a particular date. If the date is not specified it is read from the input. If no date is