The form attribute returns null if control in not within the context of a form. Retrieve the second SELECT element and examine its form element.