I have a set of elements that have been generated dynamically through Handlebars as seen below
{{#floor as |room i|}}
<div class="btn-group-toggle" data-toggle="buttons" >
<label class="btn btn-secondary" id="{{id}}">
<input type="checkbox" autocomplete="off"> {{name}}
</label>
</div>
{{/floor}}
As you can see, the elements are created with id="{{id}}". But when the page finishes loading, I want to hide these elements until a user clicks a button. I'm finding it hard to get the dynamic ids
Currently, I'm using JQuery as seen below
$(document).ready(function () {
$('#{{id}}').hide();
});
this works with known ids, but not in this case where I don't know the id