It would be useful to have a submit tag which specifies how data for a particular control should be submitted. This would allow minor corrections to be automatically fixed without requiring user involvement.
$("#email") {
submit: this.lower(); // Lower case email before submitting
}
We may also want a value tag which is changed as the user modifies the control, so they see the new value, while submit would be hidden from them.
$("#email") {
value: this.lower(); // Lower case email after user enters it
}
It would be useful to have a
submit
tag which specifies how data for a particular control should be submitted. This would allow minor corrections to be automatically fixed without requiring user involvement.We may also want a
value
tag which is changed as the user modifies the control, so they see the new value, whilesubmit
would be hidden from them.