Greetings Help solve the following problem: There is a form in which there is an n-count div.component , you need to make it so that if the parent div.component has div.component_option_thumbnail.selected , then we span.amount copy the span.amount to the end of h3 .
In fact, if .component_option_thumbnail has a class .selected , then in h3 copy span.amount .
<form> <div class="component"> <div class="component-title"> <h3>Заголовок 1</h3> </div> <div class="component-inner"> <div class="component_option_thumbnail selected"> <span class="price"> <span class="amount">1000</span> </span> </div> </div> </div> <div class="component"> <div class="component-title"> <h3>Заголовок 2</h3> </div> <div class="component-inner"> <div class="component_option_thumbnail"> <span class="price"> <span class="amount">2000</span> </span> </div> </div> </div> <div class="component"> <div class="component-title"> <h3>Заголовок 3</h3> </div> <div class="component-inner"> <div class="component_option_thumbnail"> <span class="price"> <span class="amount">3000</span> </span> </div> </div> </div> </form> Thank you in advance!
h3? Inside it carry or close? And what's your problem? Please - Yuri