I trying to make my on module for openwrt. I make simple pages for luci and now need for jQuery. So I add
<script type="text/javascript" src="/resources/jquery-2.1.1.min.js"></script>
to my htm file. But browser returns a 404 for jquery-2.1.1.min.js
.
How to add jquery-2.1.1.min.js
in luci?
SSH into your router and issue following commands to download jquery-2.1.1.min.js at an appropriate location in the web directory of your device.
Include the downloaded JQuery source in your HTML file as follows:
That should do the trick!