1. Do you get the selected data-id value for taste and packaging when you click to add to the shopping cart or buy now?
<div class="theme-options">
<div class="cart-title"></div>
<ul>
<li class="sku-line selected" id="taste" data-id="1"></li>
<li class="sku-line" id="taste" data-id="2"></li>
<li class="sku-line" id="taste" data-id="3"></li>
</ul>
</div>
<div class="theme-options">
<div class="cart-title"></div>
<ul id="test">
<li class="sku-line selected" data-id="1"><i></i></li>
<li class="sku-line" data-id="2"><i></i></li>
<li class="sku-line" data-id="3"><i></i></li>
</ul>
</div>
<li>
<div class="clearfix tb-btn tb-btn-buy theme-login">
<a id="LikBuy" title="" href="-sharp"></a>
</div>
</li>
<li>
<div class="clearfix tb-btn tb-btn-basket theme-login">
<a id="LikBasket" title=""><i></i></a>
</div>
</li>
now you can only get the taste of data-id,. How to click add Shopping cart to get the value of taste data-id and packaged data-id
$("-sharpLikBasket").on("click", function() {
var id = $(".sku-line.selected").data("id");
console.log(id);
})