New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Form: 'Add more' determinant function #76
Comments
5914b93: We've implemented |
Since, Note: both scripts are referenced in Before proceeding with the above two scenarios, we will begin testing using jsfiddle, with the following code from function field_determinant(element) {
var num_elements = element.length;
for (var i = 0; i < num_elements; i++) {
if(element[i].value.length < 1)
return false;
}
return true;
} |
We have our jsfiddle example working properly. However, the fiddle requires the input fields to be well defined in the DOM prior to the execution of the jquery As mentioned above, we may need to either merge the two scripts, or reload Note: we can implement the above jsfiddle example without the required use of the jquery |
bb54ed5: we decided to bind the The form behaves as intended with the exception of the following two cases:
|
#76: Form - 'Add more' determinant function
We will need a function that counts the number of input fields created by the Add more button, and check whether all created field elements are defined. This function will be implemented for any fieldsets being created that depends on an input field that can be appended with additional elements. This will ensure that users provide data for all form fields, before succeeding fieldsets are available.
The text was updated successfully, but these errors were encountered: