I am working on a luminus project and I want to add script file with jquery functions. The file is called scripts.js and it is in the resources/public/js folder. I am trying to load it with
{% src “/assets/js/scripts.js” %}
but with no succes. How do I load static js files in a luminus project?
and another question: if I have a jquery function like this in my scripts file:
function k3() { $(“#alla”).click(function() { alert(“alla”)})}
why must I reload it every time I have cliked the id=“alla” button in order to make it work again? why is it not constantly listening to a click event?