OrBeX
02-12-2007, 11:52 AM
Hi all,
beeing a compleet newb to OOP, I could probably use (a lot of) help with the following:
Have a form with a couple of lines of dates (date1, date2, date3, etc.)
Each date-field gets filled by 3 drop-downs (day1/mnth1/yr1, day2/mnth2/yr2, etc.)
My question is, can I now do this ?
//javascript
function DatumZetten(id)
{
var day = this.document.form.day[id].value;
var month = this.document.form.mnth[id].value;
var year = this.document.form.yr[id].value;
this.document.form.Datum[id].value = '' + year + '-' + month + '-' + day + '';
}
//html
<input type="text" OnBlur="DatumZetten(1)">
Any and all help will be greatly appreciated.
Many thanx in advance.
P.S. Mods, if double-post is not appreciated, plz remove the least well-placed post ;)
beeing a compleet newb to OOP, I could probably use (a lot of) help with the following:
Have a form with a couple of lines of dates (date1, date2, date3, etc.)
Each date-field gets filled by 3 drop-downs (day1/mnth1/yr1, day2/mnth2/yr2, etc.)
My question is, can I now do this ?
//javascript
function DatumZetten(id)
{
var day = this.document.form.day[id].value;
var month = this.document.form.mnth[id].value;
var year = this.document.form.yr[id].value;
this.document.form.Datum[id].value = '' + year + '-' + month + '-' + day + '';
}
//html
<input type="text" OnBlur="DatumZetten(1)">
Any and all help will be greatly appreciated.
Many thanx in advance.
P.S. Mods, if double-post is not appreciated, plz remove the least well-placed post ;)