Hi all
I am new to javascript and this probably might be a newbie question. I have a a date text box and next to it i have a calender icon that is a date picker.When user picks a date, that date gets displayed in the textbox.
What i want to achieve is, As soon as the user picks a date with the date picker and the date is seen in the textbox beside, I want to call a javascript method. I am using something like
[code=html]
<input type = “text” onchange=”dateChanged(this.form)” blah blah………>
[CODE]
function dateChanged(form){
var dateVal=form.collEventDate.value;
self.location=’newSpecimen.php?date=’+dateVal;
}
But the function is not called. What is the problem? thanks