Hi,
I am having problems targeting a class from a div i have appended inside on on click function. I have posted a section of this function below. After i have appended the html should i be able to target it from this same on click function or do i need to do something different for this?
Thanks!
$(".basketButton2").on("click", function() {
$(".basketList").append('<li class="basketListProduct2"><span class="productPrice2">0</span></li>'});
var newProductPrice = parseFloat(oldProductPrice) + parseFloat(v['productPrice']);
$(".productPrice2").text(newProductPrice);
});