I'm having trouble displaying the out of stock size without text "Out of Stock
".
And here is how its showing up in DOM:
<span class="option out-of-stock" value="370">25 (Out of Stock)</span>
Also here is the jQuery piece that adds class to this span:
jQuery(".ui-segment span.option:contains('(Out of Stock)')").addClass('out-of-stock');
Is there a way to strip out the text "(Out of Stock)"?
or can I somehow generate only Size number eg:
"25" without text "Out of Stock"? So that instead of 25 Out of Stock it displays as 25