Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <link media="all" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.6/themes/smoothness/jquery-ui.css" rel="stylesheet"/>
- <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script>
- <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.6/jquery-ui.min.js"></script>
- <script type="text/javascript">
- $(function() {
- $('#id').autocomplete({
- source: ["ActionScript",
- "AppleScript",
- "Asp",
- "BASIC",
- "C",
- "C++",
- "Clojure",
- "COBOL",
- "ColdFusion",
- "Erlang",
- "Fortran",
- "Groovy",
- "Haskell",
- "Java",
- "JavaScript",
- "Lisp",
- "Perl",
- "PHP",
- "Python",
- "Ruby",
- "Scala",
- "Scheme"
- ],
- minLength: 0
- });
- $('#id').focus(function(){
- $(this).trigger('keydown.autocomplete');
- });
- });
- </script>
- <input type="text" id="id">
- <input type="text1" id="id2">
- <script type="text/javascript">
- $(function() {
- $('#id').autocomplete({
- source: ["ActionScript",
- "AppleScript",
- "Asp",
- "BASIC",
- "C",
- "C++",
- "Clojure",
- "COBOL",
- "ColdFusion",
- "Erlang",
- "Fortran",
- "Groovy",
- "Haskell",
- "Java",
- "JavaScript",
- "Lisp",
- "Perl",
- "PHP",
- "Python",
- "Ruby",
- "Scala",
- "Scheme"
- ],
- minLength: 0
- });
- $('#id').focus(function(){
- $(this).trigger('keydown.autocomplete');
- });
- });
- <script type="text/javascript">
- $(function() {
- $('#id').autocomplete({
- source: ["ActionScript",
- "AppleScript",
- "Asp",
- "BASIC",
- "C",
- "C++",
- "Clojure",
- "COBOL",
- "ColdFusion",
- "Erlang",
- "Fortran",
- "Groovy",
- "Haskell",
- "Java",
- "JavaScript",
- "Lisp",
- "Perl",
- "PHP",
- "Python",
- "Ruby",
- "Scala",
- "Scheme"
- ],
- minLength: 0
- }).on("focus", function () {
- $(this).autocomplete("search", '');
- });
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement