Показать сообщение отдельно
  #2 (permalink)  
Старый 20.03.2016, 17:34
Аватар для рони
Профессор
Отправить личное сообщение для рони Посмотреть профиль Найти все сообщения от рони
 
Регистрация: 27.05.2010
Сообщений: 33,072

rodiony4,
<!DOCTYPE HTML>

<html>

<head>
  <title>Untitled</title>
  <meta charset="utf-8">
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
  <script>
   $(function(){
       $(".addtocart_button-hidden-text").each(function(){
         $(this).html($(".productPrice",this))

             });
   })
  </script>
</head>

<body>
<div class="addtocart_button-hidden-text">
<span class="product-Old-Price">9000</span>
<br>
<span class="productPrice">7000</span>
<br>
текст, который может меняться по содержимому и его нужно удалить
</div>

</body>

</html>
Ответить с цитированием