Hi,
I have a page with multiple calanders on it sharing the 1 calander popup.
I am trying to set them all to blank or null using the clear command, but it doesnt seem to be working.
For example if I had 4 calanders with the id of xx1, xx2, xx3, xx4 if I try to do this:
var datePicker = $find("xx1");
datePicker.clear();
datePicker = $find("xx2");
datePicker.clear();
datePicker = $find("xx2");
datePicker.clear();
datePicker = $find("xx2");
datePicker.clear();
or
document.getElementById("xx1").clear();
document.getElementById("xx2").clear();
document.getElementById("xx3").clear();
document.getElementById("xx4").clear();
or
document.getElementById("xx1").value="";
document.getElementById("xx2").value="";
document.getElementById("xx3").value="";
document.getElementById("xx4").value="";
or
eval("xx1.clear()");
eval("xx2.clear()");
eval("xx3.clear()");
eval("xx4.clear()");
nothing works. I am out of ideas for dodgy work arounds, and ill be buggered if I can get the clear command to work...help!
I have a page with multiple calanders on it sharing the 1 calander popup.
I am trying to set them all to blank or null using the clear command, but it doesnt seem to be working.
For example if I had 4 calanders with the id of xx1, xx2, xx3, xx4 if I try to do this:
var datePicker = $find("xx1");
datePicker.clear();
datePicker = $find("xx2");
datePicker.clear();
datePicker = $find("xx2");
datePicker.clear();
datePicker = $find("xx2");
datePicker.clear();
or
document.getElementById("xx1").clear();
document.getElementById("xx2").clear();
document.getElementById("xx3").clear();
document.getElementById("xx4").clear();
or
document.getElementById("xx1").value="";
document.getElementById("xx2").value="";
document.getElementById("xx3").value="";
document.getElementById("xx4").value="";
or
eval("xx1.clear()");
eval("xx2.clear()");
eval("xx3.clear()");
eval("xx4.clear()");
nothing works. I am out of ideas for dodgy work arounds, and ill be buggered if I can get the clear command to work...help!