Answer the question
In order to leave comments, you need to log in
How to change function in Javascript class prototype?
I am using bootstrap in my project and I need to change the behavior of the Modal class.
All functions and the class itself are declared in the bootstrap.js file, which is included after jQuery. After that, my script is also connected. In it after I try to change the behavior of the Modal class, but it says "Modal is not defined" to me.
How can I correctly change the prototype of this class?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question