Bootstrap Tags Input
Query plugin providing a Twitter Bootstrap user interface for managing tags Code on Github Bootstrap 2.3.2 Download Examples Markup Just add data-role="tagsinput" to your input field to automatically change it to a tags input field. Amsterdam Washington Sydney Beijing Cairo Show code statement returns $("input").val() "Amsterdam,Washington,Sydney,Beijing,Cairo" $("input").tagsinput('items') [ "Amsterdam" ,"Washington","Sydney","Beijing","Cairo"] True multi value Use a <select multiple /> as your input element for a tags input, to gain true multivalue support. Instead of a comma separated string, the values will be set in an array. Existing <option /> elements will automatically be set as tags. This makes it also possible to create tags containing a comma. Amsterdam ...
Comments
Post a Comment