This is my HTML
<a href="#" data-finder-code="" data-dropdown-placeholder="Select..." data-dropdown-text="1">Samsung</a>
And this is my JQuery
var finder_code = 39;
$("a[data-dropdown-text='1']").data("finder-code", finder_code);
When i search by $("a[data-dropdown-text='1']") and try to replace the data-finder-code in the same href nothing happens. How do i get this to work?