$("#detail_form").html(data);
$("#detail_form").fieldcontain('refresh');
but my radio buttons aren't getting styled. anyone know how to do this?
html code is:
<form action='/~polling/polling/polling.php' method='post'>
<div data-role='fieldcontain' id="detail_form">
</div>
</form>
php is:
echo "<fieldset data-role='controlgroup' data-type='horizontal'>
<legend>".$question."</legend>
<input type='radio' name='radio-choice-1' id='radio-choice-1' value='choice-1' checked='checked' />
<label for='radio-choice-1'>Yes</label>
<input type='radio' name='radio-choice-1' id='radio-choice-2' value='choice-2' />
<label for='radio-choice-2'>No</label>
</fieldset>";
thanks.