2016-12-09 46 views
2
<textarea id="Box" class="tags form-control" placeholder="X Axis values"></textarea> 

我想顯示標籤明智的刪除選項的文本框區域用戶選擇的選項。如何使用與textarea標籤(數據角色=「tagsinput」)自舉的標籤輸入

如何使用帶有textarea的標籤輸入bootstrap?我已經應用了data-role =「tagsinput」。但標籤輸入不起作用。正如我們所知,我們在Stackoverflow中有同樣的問題。但對此沒有解決方案。

需要的解決方案/提示此How to use tags input of bootstrap with textarea

回答

0

引導標籤輸入does not work with textarea。不提供支持。

但是,您可以將其與input type="text"一起使用,並應用以下css使其像textarea一樣工作。

.bootstrap-tagsinput { 
min-height: 100px; 
} 

See this link

+0

鏈接無法正常工作。你能幫忙嗎? –

+0

我已更新鏈接檢查它............ https://github.com/bootstrap-tagsinput/bootstrap-tagsinput/issues/38 – lakshay

+0

明白了..謝謝。 –

0

嘗試輸入文本這個CSS的滾動上輸入文本區域一樣

.tags-input { 
     max-width: 100%; 
     line-height: 22px; 
     overflow-y: scroll; 
     overflow-x: scroll; 
     height: 65px; 
     cursor: text; 
}