www.webdeveloper.com
Results 1 to 2 of 2

Thread: Autocomplete text box design

  1. #1
    Join Date
    Jul 2012
    Posts
    12

    Autocomplete text box design

    Hi everyone

    I need a simple help to design my autocomplete div from a input text file, i have this code but the width and height are not working.

    I want to create a css file and write some css to design my autocomplete box but i dont know how i can do it.

    I have this code:

    PHP Code:
    <script>    
    $(function() {
            var 
    availableTags = [
                
    "ActionScript",
                
    "AppleScript",
                
    "Asp",
                
    "BASIC",
                
    "C",
                
    "C++",
                
    "Clojure",
                
    "COBOL",
                
    "ColdFusion",
                
    "Erlang",
                
    "Fortran",
                
    "Groovy",
                
    "Haskell",
                
    "Java",
                
    "JavaScript",
                
    "Lisp",
                
    "Perl",
                
    "PHP",
                
    "Python",
                
    "Ruby",
                
    "Scala",
                
    "Scheme"
            
    ];
            $( 
    "#Search" ).autocomplete({
                
    sourceavailableTags,
                
    width:  400,
                
    height:400
            
    });
        });
    </script> 
    If anyone can give me a help with that will be really great for me, thanks community

  2. #2
    Join Date
    Jun 2008
    Location
    Europe
    Posts
    1,086
    Try one of these:
    http://dzineblog.com/2009/07/20-read...n-scripts.html

    Otherwise, post your full code and we can try to have a hand at it. It's easier to play with code like this here:
    http://jsfiddle.net/k7mrJ/

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles