An HTML Form has 2 select lists along with a checkbox. Assume that the 1st select list shows 3 options - Jan, Feb & Mar. The 2nd select list shows the remaining 9 months. Now what I want is when the checkbox is checked (i.e. using the onClick() event), all the 9 options in the 2nd select list should be removed & added to the 1st select list i.e. the 1st select list would now have 12 options & the 2nd select list would be completely vacant. Next when the checkbox is unchecked, the 2 select lists should revert back to their original state ie. the 1st select list should now have 3 options (Jan, Feb & Mar) & the 2nd select list would have the rest of the 9 months as the options. How do I do this? Please note that it is not mandatory for the 1st select list to have only 3 options; it can be lesser than 3 or greater than 3 & the months can be any month (not necessarily Jan, Feb & Mar) but whatever options the 1st select list will be having, those options will never be available in the 2nd select list & vice-versa.
Thanks,
Arpan
Thanks,
Arpan