If you create an input element and set the #tree attribute to TREU, the ajaxSubmit.success function won't be able to select the form element when the 'error' class has to be added on validation errors.
This patch fixes that.

Comments

nedjo’s picture

Status: Needs review » Needs work

Good idea, but the use of id may fail if e.g. there are two forms on a page, since the id is not necessarily the same as the name. Can the patch be adapted to still use name?