<? foreach($words as $word): ?>
<li>
<button onClick="reply_click()">Show</button>
<h4><?php echo $word['Word']['en_words'] ?></h4>
</li>
<? endforeach; ?>
<script>
function reply_click() {
$("h4").toggle("slow");
}
</script>
When I click 'button' - shows all, in every foreach, but must show in only one. Where I must used 'this' that this script work?
Yet another variant pass this to function