You'll need to recreate the menu items a la TwoSelectsRelated.
-Original Message-
From: Yager, Brian T Contractor/NCCIM
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 21, 2002 4:48 PM
To: CF-Talk
Subject: RE: Any Javascript people out there? I need help with select
bo
xes...
I
I think you'd need to do:
selectCtrl.options[i].value = i+1;
selectCtrl.options[i].text = i+1;
instead of just:
selectCtrl.options[i] = i+1;
Brian Rosenstock
-Original Message-
From: Yager, Brian T Contractor/NCCIM
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 21, 2002 4:39 PM
, February 21, 2002 3:48 PM
To: CF-Talk
Subject: RE: Any Javascript people out there? I need help with select
bo
xes...
I think you'd need to do:
selectCtrl.options[i].value = i+1;
selectCtrl.options[i].text = i+1;
instead of just:
selectCtrl.options[i] = i+1;
Brian Rosenstock
-Original
:[EMAIL PROTECTED]]
Sent: Thursday, February 21, 2002 3:48 PM
To: CF-Talk
Subject: RE: Any Javascript people out there? I need help with select
bo
xes...
I think you'd need to do:
selectCtrl.options[i].value = i+1;
selectCtrl.options[i].text = i+1;
instead of just:
selectCtrl.options[i] = i+1
May I suggest a slightly different way to do this? I hope I'm not taking the
fun out of this, but I've done this one before, and it's easier to just post
the code :) Gotta love those snippets.
function IsLeapYear(Year) {
if(Math.round(Year/4) == Year/4){
if(Math.round(Year/100) == Year/100){
*begin
script language=javascript
function makeDayList(month){
var now = new Date();
//need the month-1 because january=0 in javascript
var daysInMonth = 32 - new Date(now.getYear(), month-1, 32).getDate();
//main stumbling block
document.monthDay.day.options.length = daysInMonth;
6 matches
Mail list logo