Hi all, I using Volt template in my app,
I use in body:
<body>{{ assets.outputInlineJs('footer') }}</body>
in my application, there are the same call code assets.collection('footer')
{% do assets.collection('footer').addInlineJs(' $(".class").show(); ') %} {% do assets.collection('footer').addInlineJs(' $(".class1").hide(); ') %} {% do assets.collection('footer').addInlineJs(' $(".class3").dosomething(); ') %}
I want to same:
<script>$( document ).ready(function() { $(".class").show(); $(".class1").hide(); $(".class3").dosomething(); }); </script>
Means all located in the $( document ).ready(function() {