Call JavaScript function in jinja for loop
<p>I have an HTML page, In the variable <code>schedule</code> has sequential decimal number in seconds.</p>

<p>My purpose is create a function to convert all these numbers in time using JavaScript/jQuery, 
    but i could not understand, how can I invoke my function to convert all items?</p>

<pre><code>&lt;html&gt;
    &lt;body&gt;
        // Jinja code

        {% for item in schedule %}

        {{ convertDecimal_to_time(item.someDecimal) }}

        {% endfor %}

    &lt;/body&gt;
&lt;/html&gt;

&lt;script&gt;
    covertdecimal_to_time(input_number){
        .....
        return time;
    }
&lt;/script&gt;
</code></pre>