Ashok Singh Ashok Singh - 8 months ago 48
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 ?

    add in css

   .ui-autocomplete .ui-menu-item a{
   text-decoration: none;
        display: block;
       width: 100%;
       height: 100%;