I needed to validate two sets of selectboxes within a single form. Each pair represented a minimum and a maximum. Here is the complete script http://muffinstump.ca/selectbox_validation.php. The following is the jQuery set-up:
A Resource for Very Little