Making button auto click
<p>In my spelling game, when a letter is complete I want the next word to spell to be selected automatically. At the moment the user has to click the button to go to the next.</p>

<p>At the moment I have this </p>

<pre><code>var noExist = $('td[data-word=' + listOfWords[rndWord].name + ']').hasClass('wordglow2');
if (noExist) {
    $('.minibutton').click('enable');


} else {
    $('.minibutton').click('disable');
    $("#mysoundclip").attr('src', listOfWords[rndWord].audio);
    audio.play();
    $("#mypic").attr('src', listOfWords[rndWord].pic);
    pic.show();
}


});
</code></pre>

<p>I have tried replacing the line... </p>

<pre><code>$('.minibutton').click('enable');
</code></pre>

<p>to...</p>

<pre><code>$('.minibutton').trigger('click')
</code></pre>

<p>and it won't work, any ideas?</p>

<p><strong>THANKS</strong></p>
