Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jquery ui auto complete

I was using Jquery ui auto-complete with version 1.8.2 and later i shifted to 1.8.11. I started having problems.

auto complete in jquery 1.8.2

1.8.2

auto complete in jquery 1.8.11

1.8.11

$('#term').autocomplete({
        minLength    : 4,
        source        : rootPath+'/search',
        select: function(event, ui) 
        {
            window.location =  ui.item.url;
        }
    });
  1. How can i fix it
  2. and Where can in http://jqueryui.com/ i can get 1.8.2

Thanks

like image 900
aWebDeveloper Avatar asked Nov 29 '25 15:11

aWebDeveloper


1 Answers

For you to render a custom HTML element in Auto Complete you need to use ._renderItem.

Once you render custom data then you can capture that using select method and process it the way you want.

Use following link to learn abour custom data formatting in jquery auto-complete

http://jqueryui.com/autocomplete/#custom-data

like image 185
Vishnu Vardhana Avatar answered Dec 01 '25 05:12

Vishnu Vardhana



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!