views:

71

answers:

1

Hi All,

I m using autocomplete from

http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/

i managed to get data from server in below form but in autocomplete list i dont see spaces that i added after supplier , i even tried removing trim all over from the script but that does not solved my issue.Please suggest.

Exon: Supplier HJR/VAKJ -1

+1  A: 

That's not a jQuery or Autocomplete issue. It's how HTML works: Whitespace in the source code is irrelevant by design.

To enforce spaces that also appear on the screen, use "non-breaking spaces": Reference them either by their HTML entity name  , by their numbered entity   or by replacing space characters by Chr(160) directly. It depends on your server side software how to do it, but it is reasonably simple.

So this:

Exon:    Supplier    HJR/VAKJ -1

would become, for example:

Exon:    Supplier    HJR/VAKJ -1

Be sure to use a fixed-width font for presentation, or you will see jagged columns on the screen.

Tomalak