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