Using trigger('create') and checkboxes
I've got some code that injects HTML into the DOM and uses trigger('create') to update the UI:
displayDom.html(html).trigger('create');
For my first test, a simple paragraph and a button, this worked fine.
Any ideas for what could be wrong? This is the HTML being injected:
<h2>Why are kittens so cute?</h2><form><div data-role='fieldcontain'><fieldset data-role='controlgroup'><input type='radio' id='quizMasterAnswer_0' value='0'/><label for='quizMasterAnswer_0'>Magic</label><input type='radio' id='quizMasterAnswer_1' value='1'/><label for='quizMasterAnswer_1'>Fur</label><input type='radio' id='quizMasterAnswer_2' value='2'/><label for='quizMasterAnswer_2'>Meow</label><input type='radio' id='quizMasterAnswer_3' value='3'/><label for='quizMasterAnswer_3'>More Kittens!</label></fieldset></div></form><a href='' class='quizMasterNext' data-role='button'>Next</a>