如何在表单上添加此元素后初始化Bootstrap Form Helper?
这是我尝试的但它不起作用
$('.myButton').on('click', function (e) {
e.preventDefault();
var textafter = '<div id = "steps_sto_list_'+nextID+'" class="form-group"><div class="bfh-selectbox" style = "float:left;" data-name="newproblem['+nextID+'][\'problem_type\']" data-value="0" data-filter="true"><div data-value="0">Select TYPE</div><div data-value="1">VALUE 1</div><div data-value="2">VALUE 2</div></div></div>';
$('.bfh-selectbox').bfhselectbox('toggle');
var item = $(textafter).hide().fadeIn(800);
$('div#steps_sto_list_' + currentID).after(item);
});