Button function not working correctly on dynamic content
<p>I am having a bit of trouble with an app i am building for an iPhone using phonegap and jQuery. i have found several threads that have told me to use <code>on</code> function for content created dynamically. However, i cannot get the buttons to work correctly. The follownig code creates the buttons from a loop statement;</p>

<p><code>$("#question").append('&lt;button class="next"&gt;ClickMe&lt;/buttons&gt;');</code></p>

<p>The following code is my click function</p>

<p><code>$(".next").on("click", function(){
alert("working");
});</code></p>

<p>So far, there are 3 buttons created, but they do not produce the alert and i get no error messages. Can anyone help explain what i have done wrong?</p>
