Replay the hint sound
<p>In my drag and drop game there is a grid that is populated with words that are hidden from the user. The aim of the game is to spell these words with the aid of a sound and a picture.</p>

<p>When the user is spelling the word they should be able to replay the sound to help them. I had it working before but it has stopped working and I cannot work out why.</p>

<p>Here is the code that makes it work...</p>

<pre><code>$(".minibutton2").click(function() {
var noExist = $('td[data-word=' + listOfWords[rndWord].name + ']').hasClass('wordglow2');
if (noExist) {
    $('.minibutton2').prop('disabled', true);

} else {

    $("#mysoundclip").attr('src', listOfWords[rndWord].audio);
    audio.play();
}
});
</code></pre>

<p>Here is a fiddle - <a href="http://jsfiddle.net/smilburn/m8Squ/6/" rel="nofollow">http://jsfiddle.net/smilburn/m8Squ/6/</a></p>
