Summary: I have an element whose html I am updating through jquery. I also have a handlebars helper {{helperName variable1}}
Side Note: If you're curious my helper helps format a decimal number in price format. (price 1234.56) results in $1,234.56
Question: How can I pass this helper with a variable dynamically through jquery?
What I Have Tried: I am trying: $("#elementId').html("{{helperName variable1}}") but that is also not working and rendering the text exactly as is.
$("#elementId').html("{{helperName variable1}}")
Thanks for any help.
2.1m questions
2.1m answers
60 comments
57.0k users