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