SitePoint Sponsor

User Tag List

Results 1 to 1 of 1
  1. #1
    SitePoint Member
    Join Date
    Sep 2013
    0 Post(s)
    0 Thread(s)

    Add propieties to an autocomplete dropbox

    I am a really beginner and I've found different threads that talk about proprieties of an autocomplete dropbox. However, when I want to add them all, I am not able to do it.

    The first problem I have is that I am doing my webpage with wix... and when I want the autocomplete to redirect to a page it just rediects in the box where the html is.... any solution. I would also like to add a limit numer of displays to the dropbox.

    Thank you in advance and here you have the html that I already have (copied):

    HTML Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
    <html xmlns="">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>jQuery UI Autocomplete Testt</title>
    <link href="" rel="stylesheet" type="text/css"/>
    <script src=""></script>
    <script src=""></script>
    	$(document).ready(function() {
    		var data = [
    			{label: 'Google', value: ''},
    			{label: 'Yahoo', value: ''},
    			{label: 'BMW', value: ''},
    			{label: 'Bing', value: ''}
    			source: data,
    			focus: function (event, ui) {
    				return false;
    			select: function (event, ui) {
    				window.location = ui.item.value;
    				return false;
    <input id="autocomplete" />
    Last edited by Mittineague; Sep 29, 2013 at 15:30.


Posting Permissions

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