###* Forms ===== Unpoly comes with functionality to [submit](/form-up-target) and [validate](/up-validate) forms without leaving the current page. This means you can replace page fragments, open dialogs with sub-forms, etc. all without losing form state. @class up.form ### up.form = (($) -> u = up.util ###* Sets default options for form submission and validation. @property up.form.config @param {Number} [config.observeDelay=0] The number of miliseconds to wait before [`up.observe`](/up.observe) runs the callback after the input value changes. Use this to limit how often the callback will be invoked for a fast typist. @param {Array} [config.validateTargets=['[up-fieldset]:has(&)', 'fieldset:has(&)', 'label:has(&)', 'form:has(&)']] An array of CSS selectors that are searched around a form field that wants to [validate](/up.validate). The first matching selector will be updated with the validation messages from the server. By default this looks for a `
`, `