Hi,
Quick question, why does my reference to weekdays
inside change_date()
give weekdays is undefined
error in Firebug?
I also tried this.weekdays
, same.
How do I correct this?
var timesheet_common = {
weekdays : ["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],
change_date: function() {
$('#text_input').val( weekdays[(new Date()).getDay()] );
}
};