{% for transaction in transactions %}
<ul>
<li>{{transaction.number}}</li>
<li id = "price">{{transaction.price}} USD </li>
<li>{{transaction.created}}</li>
</ul>
<hr>
{% endfor %}
I made currency converter option with api. In this case user has 3 transactions. How can i change each transaction's currency with javascript after using dropdown menu? When i change currency by document.getElementById("price").innerHTML = ${totalExchangeRate2} ${selectValue}; (it is onchange with dropdown menu) only first price changes. How to make this django loop avaible in javascript or something like this?