• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Javascript gurus - need script help

jjones

Lifer
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?
 
Back
Top