I'm trying to update my data attribute, but my code doesn't work. Don't see what i'm missing
<tr class="sell-figures" rel="sell-id">
<th></th>
<td class="" data-sell-id="1"></td>
<td class="" data-sell-id="12"></td>
<td class="" data-sell-id="123"></td>
<td class="" data-sell-id="1234"></td>
</tr>
and here is my jquery
$(".sell-figures tr[rel=sell-id] td:nth(3)").data("sell-id", '999');
I'm trying to change 1234 to 999. what am i doing wrong here? Thanks