limengmeng00 2015-07-22
Tokeninput is a jQuery plugin which allows your users to select multiple items from a predefined list, using autocompletion as they type to find each item. You may have seen a similar type of text entry when filling in the recipients field sending messages on facebook.
Vertical list style item selection
Facebook style item selection
用法:
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script> <script type="text/javascript" src="yourfiles/jquery.tokeninput.js"></script> <link rel="stylesheet" type="text/css" href="yourfiles/token-input.css" /> <script type="text/javascript"> $(document).ready(function () { $("#my-text-input").tokenInput("/url/to/your/script/"); }); </script>
原文:http://loopj.com/jquery-tokeninput/
下载:loopj-jquery-tokeninput-jquery-tokeninput-1.6.0-0-g201d2d1
项目地址:https://github.com/loopj/jquery-tokeninput