Question: uncaught error $.fn.modal is not defined?
Answer: The bootstrap Modal error is actually the result of you not including bootstrap's javascript before calling the modal function. Modal is defined in bootstrap. js and not in jQuery . ... To avoid such error just be sure to include jQuery then bootstrap's javascript before you call the modal function.