I've got an element on my page:
<a data-toggle="modal" data-nodeID="" class="quickView" data-target="#productModal" href="#">
And this element gets 'repeated' in using a serialized ajax object and what I'm trying to do is change the data-nodeID attribute but I can't seem to alter it. I've tried finding the element by it's class name:
$(myTemplate).find('.quickView').attr({'data-nodeid': product.Id});
Does anyone know how this is done, please?
Thanks, C