I'm working on a site located here:
Los Cabos Holidays
I'm using javascript code to change the number of days in the month in my forms. Right now it is only working in the "Hotel Quick Search" form. When you change the month in the Check-In Date, it will alter the number of days in the month accordingly and also changes the month and days in the Check-out Date appropriately.
I want to make this work for all three forms on the page by passing an argument, but of course it should only work for the intended form, not all 3 forms.
Obviously I can just use three versions of the same script, each one tailored for the particular form, but I'm trying to condense it to just one script and I'm too much of a javascript noobie to figure it out. Here's the javascript:
Any suggestions?
Los Cabos Holidays
I'm using javascript code to change the number of days in the month in my forms. Right now it is only working in the "Hotel Quick Search" form. When you change the month in the Check-In Date, it will alter the number of days in the month accordingly and also changes the month and days in the Check-out Date appropriately.
I want to make this work for all three forms on the page by passing an argument, but of course it should only work for the intended form, not all 3 forms.
Obviously I can just use three versions of the same script, each one tailored for the particular form, but I'm trying to condense it to just one script and I'm too much of a javascript noobie to figure it out. Here's the javascript:
Any suggestions?