-4

I have an application built in Html5 and wrapped in PhoneGap for Android

I have an auto-complete input

On drop-down list should appear in every instance linebreak, it works great on the computer, on Android not.

JS code:

        List = $.map(data.XXX, function (item) {
            return {
                label: item.X.split(":")[0] + "</br>" + item.X.split(":")[1],
                value: item.XX
            };

In smartPhone it shows me everything on one line

Does anyone know why this happens?

Hodaya Shalom
  • 4,327
  • 12
  • 57
  • 111

3 Answers3

2

Try using <br/> .. I hope it'll work... :-)

Rob W
  • 341,306
  • 83
  • 791
  • 678
Usama Sarwar
  • 8,922
  • 7
  • 54
  • 80
1

</br> isn't a proper tag, use <br />

Sterling Archer
  • 22,070
  • 18
  • 81
  • 118
1

for html5 the correct version is <br>

<br/> is correct for xhtml 1.1

Dziad Borowy
  • 12,368
  • 4
  • 41
  • 53