I have created a simple spring boot application for my View is loading jquery but not executing it.Details are below: My Project structure
[
My Controller
My JqueryCode
My HTML page that import jQuery
Chrome Inspector shows jquery is loaded fine
But still my jQuery code is not running, and if I try running it directly from console., is says jQuery is not Defined
Guys please tell me what am i doing wrong / or missing.
If you change the:
<script type="javascript"
to
<script type="application/javascript"
it should work, type='javascript' is not a defined media type according to http://www.iana.org/assignments/media-types/media-types.xhtml
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.