<script type="text/javascript">
function changeText(text) {
document.getElementById('xf_x').value =+ text;
}
</script>
<input style="width: 80px; height: 30px" type=button onclick='changeText("
<div>
<input id="ac-1" name="accordion-1" type="checkbox" />
<label for="ac-1">Название</label>
<article class="ac-small">
<p>Анимешка</p>
</article>
</div>")' value=anime>