How would I select this fragment?
<div data-id="54" data-action="follow-global-id" class="add-to-list">here is my answer</div>
$('.add-to-list[data-action|="action-follow-global-id"][data-id|=id]').text('here is the things jtjt in the id value');
Didn't test it, but should work:
var id = 54; $('.add-to-list[data-action=follow-global-id][data-id='+id+']').text('something');