Here is a tricky task. I have price list as this :
<span class="price">10.99€/span>
<span class="price">1.99€/span>
I need to transform this into this
<span class="price">10<span class="decimal">.99</span></span>
<span class="price">1<span class="decimal">.99</span></span>
Here is how I approach this so far
$(".price").each(function() {
var PriceArray = ($(".price").text());
var re = /\s*€\s*/
var PriceArraySplit = PriceArray.split(re) // I remove Euro sign
});
Further, as I understand, I need to split each number by decimal and store those in array and then replace values using new values from that array.
That's where my brain got overflowed.