Hmmm, your code doesn't look bad and I wonder why it doesn't work.
I have a suggestion though; insteading of passing the object's id with this.id you could simplify the code by doing this instead:
............
function focusEvent(this, base) {
if (base == undefined) this.value = '';
else this.value = base;
}
.......
................
I have a suggestion though; insteading of passing the object's id with this.id you could simplify the code by doing this instead:
............
function focusEvent(this, base) {
if (base == undefined) this.value = '';
else this.value = base;
}
.......
................