I\'m iterating over a list in Handlebars using the built-in each
helper.
Within the each block, I\'m referencing the current loop index
I solved this issue for myself by adding a short script tag to the bottom of my handlebars code!
Add a class to wherever you are calling @index and then the below jQuery code works (can also be done using vanilla JS).
{{@index}}
edit 4/28- This has changed to use vanilla JS for better backwards compatibility (i.e. IE7, 8):
document.querySelectorAll
has great compatibility but could also be document.getElementsByClassName("create_index")