. , .
: CSS.
CSS JS DOM .
.bootstrap-tagsinput.disabled {
border: none;
box-shadow: none;
}
.bootstrap-tagsinput.disabled input {
display: none;
}
.bootstrap-tagsinput.disabled .badge span[data-role="remove"]{
display: none;
}
, :
.bootstrap-tagsinput.disabled .badge {
background-color: #ccc;
border: 1px solid #ababab;
}
Then, when you want to enable / disable, just add or remove disabledthe CSS class from the root of this element (class with CSS class bootstrap-tagsinput).
source
share