javascript - Restrict Bootstrap Input tags maximum 100 tags -


hi friends i'm using bootstrap tags input project , require 100 tags entered after should not allow tags entered input field .

html :

<input type="text"  class="form-control" id="skill_nameone" name="skill_name"  data-role="tagsinput"  /> 

js:

bootstrap-tagsinput.min 

css :

bootstrap-tagsinput.css 

image :

enter image description here

this input field should accommodate 100 tags . in above pic contains 7 tags .

thanks in advance .

you can limit maximum number of tags using maxtags this:

$('input').tagsinput({   maxtags: 100 }); 

Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -