jQueryUIで、オートコンプリートを一定文字数以上の場合、実現したいのですが、どうしたらいいでしょうか?
(2文字以上で実現したいです)
lang
1<html> 2<head> 3<meta charset="utf-8"> 4<link rel="stylesheet" href="//code.jquery.com/ui/1.11.2/themes/smoothness/jquery-ui.css"> 5<script type="text/javascript" src="https://code.jquery.com/jquery-1.11.1.min.js"></script> 6<script type="text/javascript" src="https://code.jquery.com/ui/1.11.2/jquery-ui.js"></script> 7<script> 8 $(function() { 9 $("#tags").autocomplete({ 10 source: ["テ","テラミス","テラテイル"] 11 }); 12 }); 13</script> 14</head> 15<body> 16<div class="ui-widget"> 17 <label for="tags">Tags: </label> 18 <input id="tags"> 19</div> 20</body> 21</html>
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。