I want help making the java script code to use an icon and when i click the icon the <a>exemple</a>
to <textarea>exemple</textarea>
<div class="swiper-slide">
<i class="fa-regular fa-pen-to-square" id="update_pen" onclick="convertElement()"></i> <--- click here
<div class="services-item__content">
<h4 class="services-item__tp-title mb-30">
<a href="">Exemple</a> <--- change this to textarea with the same text
</h4>
</div>
</div>