1

I did autocomplete using jquery and web service. Auto complete is showing with bullets and underline.

How can I remove it?

Paolo
  • 17,649
  • 21
  • 81
  • 115

2 Answers2

2

You can easily do this by adding a css

list-style-type: none;

And for removing the underline use

text-decoration: none;

Or you can try this with jquery

$('.ui-autocomplete').css('list-style-type', 'none');
$('.ui-autocomplete').css('text-decoration', 'none');
nrsharma
  • 2,477
  • 1
  • 17
  • 36
0

Just add some Jquery statements and get easily:

  $('#myInput').autocomplete({ source: function (event, ui) {
      ...
      .....
      ......
      $('.ui-autocomplete').css('list-style-type', 'none').css('text-decoration', 'none');
    });

Or Try to set CSS style :

    ul.ui-autocomplete
    {
        list-style-type: none;
        text-decoration: none;
    }
Ishan Jain
  • 7,819
  • 9
  • 46
  • 75