how do I pass play_ID into the the function toggleSound()?
onclick=\"javascript:var play_ID=$id;toggleSound();\"
<script type=\"text/javascript\">
<script type=\"text/javascript\">
function toggleSound() {
audioElem = document.getElementById(\"audio". $row["ID"]."\");
if (audioElem.paused)
audioElem.play();
else
audioElem.pause();
}
</script>
play_IDuniquely identify the element that's been clicked? If so you can calltoggleSound(this)and declare the function astoggleSound(audioElem)echostatement?