packageAtribs.holidaySelection = document.forms['rentalForm'].Holidays.value;
Don't ask me what the difference is...i don't know :)
--
mailto:[EMAIL PROTECTED]
Sunday, October 5, 2003, 6:21:44 PM, you wrote:
HO> I'm having a little trouble with this script ... here's the bit of code in question ...
HO> packageAtribs = new Object();
HO> packageAtribs.holidaySelection = document.rentalForm.Holidays.value;
HO> if I do --
HO> alert(document.rentalForm.Holidays.value);
HO> I get the expected value.
HO> But
HO> alert(packageAtribs.holidaySelection);
HO> gives me a blank.
HO> While,
HO> packageAtribs.holidaySelection = 1;
HO> Gives me 1 on the alert.
HO> If I parseInt() on document.rentalForm.Holidays.value, I get NaN on the alert.
HO> To me, it should be pretty straight forward ... packageAtribs.holidaySelection = document.rentalForm.Holidays.value; should produce the expected results. I can't see, right now, any other way to
HO> get the value set that I want.
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

