this is how i did it....but it is not working......
$(".lbtnaddtocart", row).eq(j).attr("CommandArgument", customer.find("ProductId").text());
tis is the linkbutton in my datalist....
<asp:LinkButton ID="lbtnAddtocart" runat="server" CommandArgument='<%#Eval("ProductId")%>'
BackColor="Green" Font-Bold="true" Text="Add To Cart" Width="150px" BorderColor="Black"
BorderStyle="Inset" BorderWidth="2px" ToolTip="Add To Cart"></asp:LinkButton>
thanks in advance.....