Great solution! I adapted this code to fit a use case that uses a constant sum w/total.I was wondering if there is a way to retain the user's choice after a validation error message is presented?For ex: There are 2 boxes and a total field, the validation is set such that the total must be equal to a 100.If box 1 equals 50, box 2 equals 10, the validation fails and the user's choices are reset to null. Is there a way to retain their choices if the validation fails?
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.