Ashok Singh Ashok Singh - 3 months ago 12
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) - https://jsfiddle.net/fuyfksLd/

This code has a different CSS than usual


I've added some CSS which is breaking when I add the _renderItem code - https://jsfiddle.net/fjwbLnhv/ .

The background of the list items shrinks.


What am I doing wrong ?

Answer
    add in css


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