Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
145631 | Jul 1,2019 10:38 PM UTC | Jul 5,2019 01:24 PM UTC | JavaScript - EJ 2 | 3 |
![]() |
Tags: FormValidator |
// initialize MultiSelect component
var listObj = new ej.dropdowns.MultiSelect({
// set the placeholder to MultiSelect input element
placeholder: 'Favorite Sports',
// set the type of mode for how to visualized the selected items in input element.
mode: 'CheckBox',
change: onChange
});
listObj.appendTo('#default');
var options = {
rules: {
default: { required: true }
}
};
// Initialize the FormValidator.
var formObj = new ej.inputs.FormValidator('#formId', options);
function onChange(args) {
formObj.validate("default"); // To validate the Multiselect component
} |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.