Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $("#send-data-form").validate({
- rules: Object.assign(
- {},
- Array.from(Array(4).keys()).reduce((obj, i) => {
- obj[`ProfilePriorities[${i}].Priority`] = {
- required: true,
- notEqualToGroup: [".user-selected-number.profile-priority"]
- };
- return obj;
- }, {}),
- Array.from(Array(4).keys()).reduce((obj, i) => {
- obj[`BlockPriorities[${i}].Priority`] = {
- required: true,
- notEqualToGroup: [".user-selected-number.block-priority"]
- };
- return obj;
- }, {})
- )
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement