1
bootstrap tag
의 도움으로 yii
에 자동 완성 태그를 추가하려고합니다. 태그 입력란이 작동하지만 앞 글 입력란이 작동하지 않습니다.부트 스트랩 태그 : 앞으로 타입이 작동하지 않습니다.
내 필드 :
<?= $form->field($model, 'existing_control')
->textInput(
[
'max-width'=>'10px',
'id'=>'vuln'.$model->v_id,
//'data-role'=>'tagsinput',
'name'=>$model->v_id,
'placeholder'=>'Type each here and press enter',]
)
?>
내 스크립트
나는 뭐야 내가 잘못하고 있어요bootstrap-tagsinput.min.js
에서
TypeError: a is undefined
같은 오류가있어
$('input[type=text][id="vuln<?php echo $model->v_id;?>"]').tagsinput({
typeahead: {
source: ["Amsterdam","Washington","Sydney","Beijing","Cairo"],
}
});
?