Reputation: 33
<textarea id="Box" class="tags form-control" placeholder="X Axis values"></textarea>
i want show user selected options in text box area in tag wise with remove option.
How to use tags-input of bootstrap with textarea? I have applied data-role="tagsinput". But tags-input is not working. as we know, we have the same issue in Stackoverflow. but for that no solution.
need solution/hint for this How to use tags input of bootstrap with textarea
Upvotes: 3
Views: 5211
Reputation: 578
follow this step
<style>
.bootstrap-tagsinput {
line-height: 15px !important;
min-height: 165px;
padding-top: 20px;
padding-bottom: 20px
}
span.tag.label {
position: relative;
float: left;
margin: 2px 5px;
}
.bootstrap-tagsinput input {
position: relative;
float: left;
height: auto;
margin-top: 4px;
margin-left: 5px;
padding: 0px;
text-align: left;
width: auto;
}
<style/>
<input type="text" class="form-control inputtags" data-role="tagsinput" name="keywords">
Upvotes: 0
Reputation: 1
try this css on input text for scroll on Input Like textarea
.tags-input {
max-width: 100%;
line-height: 22px;
overflow-y: scroll;
overflow-x: scroll;
height: 65px;
cursor: text;
}
Upvotes: 0
Reputation: 981
Bootstrap tags-input does not work with textarea
. Support is not provided.
However you can use it with input type="text"
and apply the following css to make it work like textarea.
.bootstrap-tagsinput {
min-height: 100px;
}
Upvotes: 2