Advertisement
Guest User

temp

a guest
May 24th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. $("#send-data-form").validate({
  2. rules: Object.assign(
  3. {},
  4. Array.from(Array(4).keys()).reduce((obj, i) => {
  5. obj[`ProfilePriorities[${i}].Priority`] = {
  6. required: true,
  7. notEqualToGroup: [".user-selected-number.profile-priority"]
  8. };
  9.  
  10. return obj;
  11. }, {}),
  12. Array.from(Array(4).keys()).reduce((obj, i) => {
  13. obj[`BlockPriorities[${i}].Priority`] = {
  14. required: true,
  15. notEqualToGroup: [".user-selected-number.block-priority"]
  16. };
  17. return obj;
  18. }, {})
  19. )
  20. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement