I have structure like this:
<div class="summary entry-summary">
<form>
<div class="single_variation_wrap">
<div class="single_variation">
<span class="price">
<span class="amount">200.00грн.</span>
</span>
<p class="stock out-of-stock">Нет в наличии</p></div>
</div>
</div>
</form>
<ul class="variation-select" attr="pa_varnish_color"></ul>
<ul class="variation-select" attr="pa_type_of_furniture"></ul>
</div>
I need on
click $(".variation-select").last().click(function () { })
change
<p class="stock out-of-stock">Нет в наличии</p>
like this:
`$("p.stock").prependTo(".single_variation");`
- move p.stock to be first element of .single_variation. I need to do this on click because first when page load there no .single_variation_wrap it's hidden. After click the last .variation-select .single_variation_wrap become to be visible. For better understand i load my page on hosting and adding link here. Also I add screenshot where I explain what I need to do.
page link: Product page link

