pass js value inside swig variable
Closed this issue · 1 comments
Ikhan commented
Hi I'm having passing js value inside the swig variable. Is there any way of doing it. Thanks.
Currently I'm doing like this
<script> $(function(){ if(variable == 'something'){ {%set n = variable %} } }); </script>Thanks.
Markkos89 commented
<script> $(function(){ if(variable == 'something'){ {%set n = variable %} } }); </script>
here you have one blank space missing, try with the blank space
<script> $(function(){ if(variable == 'something'){ {% set n = variable %} } }); </script>