If a form includes an element with a name attribute of 'disabled', the
.on function does not prevent the form from being submitted (when used with a descendant selector).
This form is not prevented from submitting:
<input type="text" name="disabled" value="Some text" />
<input type="submit" />
$(document).on('submit', 'form', false);
If the name of the text input was changed to anything other than
'disabled' the form is prevented from submitting.
Strangely, if I change the method to the following, the original form would not submit (even ''with'' the
Example: Two identical forms, one with
Note: I am ''not'' trying to disable this field, I simply wanted to use the name 'disabled' as the attribute.