Ashok Singh Ashok Singh - 1 year ago 127
CSS Question

CSS breaking with _renderItem in jquery autocomplete

I'm facing some problem with _renderItem in jquery autocomplete.

I have a autocomplete fiddle (not using _renderItem) -

This code has a different CSS than usual

I've added some CSS which is breaking when I add the _renderItem code - .

The background of the list items shrinks.

What am I doing wrong ?

Answer Source
    add in css

   .ui-autocomplete .ui-menu-item a{
   text-decoration: none;
        display: block;
       width: 100%;
       height: 100%;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download