Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove bullets from jquery autocomplete result

My jquery-ajax autocomplete result shows a bulleted list. I want to remove the bullets. I don't understand where and what i need to change in jquery-ui-1.8.21.custom.css (downloaded from JQuery UI website).

Any suggestions would be highly appreciated.

Thanks in advance.

like image 477
shaz404 Avatar asked Jun 14 '12 07:06

shaz404


3 Answers

jQuery-ui-1.10.3

This works in Chrome, IE, and Firefox. It also removes the left margin where the bullet used to be. It's derived from w3Schools http://www.w3schools.com/CSS/css_list.asp

ul.ui-autocomplete {
    list-style: none;
    list-style-type: none;
    padding: 0px;
    margin: 0px;
}
like image 60
Richard Waddell Avatar answered Nov 04 '22 03:11

Richard Waddell


make sure the default ui autocomplete class contains list-style: none.

ul.ui-autocomplete {
    list-style: none;
}
like image 16
chrisvillanueva Avatar answered Nov 04 '22 02:11

chrisvillanueva


change the css where it shows bullet property to

list-style:none

like image 3
Murtaza Khursheed Hussain Avatar answered Nov 04 '22 03:11

Murtaza Khursheed Hussain