jqueryでのオートコンプリートの方法がわかったのですが、angularjsで同じことを実現したいです。
やり方はあるのでしょうか?
jqueryの場合(データはphpで取得)
<!DOCTYPE html> <html lang="ja"> <head> <meta charset="utf-8"> <title>Auto Complete</title> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.0/themes/smoothness/jquery-ui.css" /> <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.0/jquery-ui.min.js"></script> <script> $(function() { $("#sample").autocomplete({ source: "./autocomplete.php" }); }); </script> </head> <body> <form> <input type="text" id="sample" /> </form> </body> </html>
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2015/08/12 01:32