I did autocomplete using jquery and web service. Auto complete is showing with bullets and underline.
How can I remove it?
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');
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;
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.