Сообщение от ami_moor
|
Пробую вот так, не выходит..
$(".standart-btn").each(function() {
$(this).children(".vc_tta-panel-heading").append($(this).children('.standart'));
});
|
Пробуй так
<!DOCTYPE html>
<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=windows-1251' />
<script src='http://code.jquery.com/jquery-latest.js'></script>
<!--
<script src="https://code.angularjs.org/1.3.9/angular.min.js"></script>
<script src="https://code.angularjs.org/1.3.9/angular-route.js"></script>
-->
<style type='text/css'>
</style>
<script type='text/javascript'>
$(function(){
$(".standart-btn").each(function() {
$(this).children(".vc_tta-panel-heading").append($(this).find('.standart'));
});
});
</script>
</head>
<body>
<div class="vc_tta-panels">
<div class="standart-btn">
<div class="vc_tta-panel-heading"></div>
<div class="vc_tta-panel-body">
<div class="standart">
<button>Кнопка</button>
</div>
</div>
</div>
<div class="standart-btn">
<div class="vc_tta-panel-heading"></div>
<div class="vc_tta-panel-body">
<div class="standart">
<button>Кнопка</button>
</div>
</div>
</div>
</div>
</body>
</html>