I have a variable saved as object_id in javascript. I want to target a data attribute by interpolating the object id in to the data attribute.
For example:
$('[data-object-id="${object_id}"]')
However this is not finding the attribute. The are no errors.
I've tried interpolating using '+' but found it quite fiddly in this instance.