0

Following Error Occurred while submitting form to check validation

Uncaught TypeError: Cannot read property 'unobtrusive' of undefined

The Error Comes at this line of code

$.validator.unobtrusive.parse("#RegisterCustomerFrm");

any help will be appreciated.Thanks!

Maistrenko Vitalii
  • 994
  • 1
  • 8
  • 16
  • You need to show your scripts definitions - clearly they are in the wrong order. –  Oct 06 '17 at 06:36

1 Answers1

0

I think you did not included this javascript "jquery.validate.unobtrusive.min.js".Please include it.

Jinesh
  • 1,554
  • 10
  • 15
  • Thanks for respondig but i have included both jquery.validate.min.js and jquery.validate.unobtrusive.min.js but still getting this error –  Oct 06 '17 at 05:30
  • Have you include this – Jinesh Oct 06 '17 at 05:34
  • yes i have included this reference as well. i already mentioned it in the above comment.but issue is still there in validating –  Oct 06 '17 at 05:37
  • here are the files i include for this: –  Oct 06 '17 at 05:38
  • change the position first include validate.min.js then include this js jquery.validate.unobtrusive.js – Jinesh Oct 06 '17 at 05:41
  • thanks yes the trick works, same thing was suggested in another answer and it worked. Thanks for your help.. –  Oct 06 '17 at 05:44
  • well bro i have accepted it as answer but as i am new to this platform so my vote's are saved but will reflect your profile after i got 15 reputations. –  Oct 06 '17 at 05:52