Uncaught TypeError: $(..id is not a function - Cannot change the ID of an element
I am trying to change the id of a div at runtime, but getting the error
. Its a aspnet core program, so the @1 value is a dynamic value that translates to an integer value e.g. 1
- Uncaught TypeError: $(...).parent(...).closest(...).id is not a function
My code is
in my added scripts I have
-
<script src="~/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js"></script>